Coder Social home page Coder Social logo

Animated gif about gifsicle HOT 8 CLOSED

kohler avatar kohler commented on May 20, 2024
Animated gif

from gifsicle.

Comments (8)

kohler avatar kohler commented on May 20, 2024

This is not an issue with gifsicle. You should report it to gulp and/or imagemin first.

from gifsicle.

bampakoa avatar bampakoa commented on May 20, 2024

@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.

kohler avatar kohler commented on May 20, 2024

The exact error message and gif file are required for a decent bug report, yes! :) Otherwise no way for me to know.

from gifsicle.

bampakoa avatar bampakoa commented on May 20, 2024
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)

loading

from gifsicle.

kohler avatar kohler commented on May 20, 2024

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:

  1. 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.”
  2. 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.

bampakoa avatar bampakoa commented on May 20, 2024

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.

kohler avatar kohler commented on May 20, 2024

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.

bampakoa avatar bampakoa commented on May 20, 2024

Ok, I can see your point. Thanks anyway for the help and sorry for bothering you with no reason.

from gifsicle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.