Comments (8)
This is not an issue with gifsicle. You should report it to gulp and/or imagemin first.
from gifsicle.
@kohler I reported it to the other repos that you mentioned (maybe accidentally, because I could not figure out what was the correct repo to report it) but they redirected me to this one. Nevertheless, I would appreciate it if you could tell if there is any known problem with animated files.
If not, I could provide you with the exact error message and the gif file in case you can help with the issue.
Thanks
from gifsicle.
The exact error message and gif file are required for a decent bug report, yes! :) Otherwise no way for me to know.
from gifsicle.
events.js:85
throw er; // Unhandled 'error' event
^
Error: write EOF
at exports._errnoException (util.js:746:11)
at WriteWrap.afterWrite (net.js:775:14)
from gifsicle.
In order for me to help fix the problem, you need to give enough detail that I can understand the problem and reproduce it. A web search for “how to write a bug report” should help you. In this case:
- Find a GIF causes no problems before it is processed by gifsicle. Call that gif
unoptimized.gif
. Attach the GIF. Say exactly how you can tell that this GIF causes no problems. Do not cut and paste a Javascript fragment from unidentified code; that is useless to me. Tell me how to reproduce. “Go to web site X and upload the GIF. The GIF will be uploaded.” or “View the GIF in Safari. It looks OK.” - Transform the GIF using gifsicle to an optimized version. Tell me exactly what gifsicle command line you used, and which version number of gifsicle. Attach the optimized GIF. Say exactly how you can tell that this GIF causes a problem. Tell me how to reproduce the problem.
from gifsicle.
I am using:
- gulp 3.9.0
- gulp-load-plugins 1.0.0-rc.1
- gulp-cache 0.3.0
- gulp-imagemin 2.3.0
to execute the following command from a gulp file
var gulp = require('gulp');
var plug = require('gulp-load-plugins')();
gulp
.src(/* the path of my gif image*/)
.pipe(plug.cache(plug.imagemin({
optimizationLevel: 3
})))
and I get the above error. The attached image is the source gif that causes me trouble.
Thanks
from gifsicle.
I do not maintain gulp, gulp-load-plugins, gulp-cache, or gulp-imagemin. I maintain gifsicle. A good bug report would mention only gifsicle: What is the gifsicle command line that produces an incorrect image?
Your gulpfile is not valid; it has no default task. Also gulp-load-plugins did not work. I had to learn gulp syntax to make the following gulpfile.
var gulp = require('gulp');
var cache = require('gulp-cache');
var imagemin = require('gulp-imagemin');
gulp.task("default", function () {
return gulp
.src("/home/kohler/ass.gif")
.pipe(imagemin({
optimizationLevel: 3
}))
.pipe(gulp.dest("dest"));
});
With this gulpfile I can process your image with no problem. Run on the command line Gifsicle reports
gifsicle: While reading '/home/kohler/ass.gif' frame #12:
gifsicle: warning: trailing garbage after GIF ignored
which indicates a problem with the input GIF, but this warning does not affect its operation, or the operation of imagemin.
So this bug is invalid. If you have an ACTUAL GIFSICLE PROBLEM, you may report that problem in a new issue. It should be an ACTUAL GIFSICLE PROBLEM, in which gifsicle is at fault, with an ACTUAL GIFSICLE COMMAND LINE. Not some massive pile of gulp.
from gifsicle.
Ok, I can see your point. Thanks anyway for the help and sorry for bothering you with no reason.
from gifsicle.
Related Issues (20)
- --crop-transparency only seems to trim the bottom and right transparency HOT 5
- Large GIF being resized changing color palette - what am I doing wrong?
- Missing index.html if running gifsicle-wasm? HOT 2
- Mismatching output GIF created
- name with negative number
- License HOT 1
- Script issue: `autoreconf: command not found` HOT 2
- Can i use gifsicle in wasm? HOT 1
- Crash during parsing of malformed GIF HOT 4
- Don't optimize file if result is bigger than input HOT 1
- Pink artifacts after resizing HOT 1
- Could not change --background after --crop
- After Fresh Installation fail: Must use import to load ES Module
- very import function HOT 2
- fatal error: frame selection and frame changes don’t mix
- [Help document bug] For gifsicle, the help document misses some options
- Can you set a wallpaper centered? HOT 1
- Add precise colormapping option
- Artifacts / trails when trimming HOT 2
- heap-buffer-overflow in ambiguity_error HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gifsicle.