Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert non-gifs to gifs? #12

Closed
hugovk opened this issue Feb 18, 2014 · 7 comments
Closed

Convert non-gifs to gifs? #12

hugovk opened this issue Feb 18, 2014 · 7 comments

Comments

@hugovk
Copy link

hugovk commented Feb 18, 2014

Would it be difficult or worthwhile to allow some non-gifs such as jpg or png as input and convert them to gif first?

So:

gifsicle --delay=10 --loop *.jpg > anim.gif

@kohler
Copy link
Owner

kohler commented Feb 18, 2014

Worthwhile sure; difficult yes; patches are welcome.

@CyberShadow
Copy link

According to this page, you can use ImageMagick to convert images and pipe them straight into gifsicle:

convert Img*.png GIF:- | gifsicle --delay=50 --loop --optimize=2 \
                                  --colors=256 --multifile - > out.gif

@iirelu
Copy link

iirelu commented Sep 22, 2014

What I usually do is convert -delay 3 *.png gif:- | gifsicle -O3 [..etc..] > output.gif.

@kohler kohler closed this as completed Dec 7, 2014
@cpitclaudel
Copy link

Do these ImageMagick based solutions actually produce good quality results? Converting to individual gif frames and then assembling them sounds like it would cause a significant quality loss; doesn't it?

@CyberShadow
Copy link

Converting to individual gif frames and then assembling them sounds like it would cause a significant quality loss; doesn't it?

That's correct. Each frame would be dithered individually, which removes a lot of information a tool such as gifsicle could use for optimizing successive frames. High-quality GIFs from true color sources is probably outside gifsicle's scope.

@cpitclaudel
Copy link

I see; thanks for the clarification!

@chocmake
Copy link

chocmake commented May 2, 2018

A pity this was closed early as it's a useful suggestion and as mentioned above pre-converting to GIF frames using ImageMagick appears to have its own drawbacks. Assumed gifsicle actually had this feature given all the frame selection options until I found this issue, as was needing to achieve optimized frame to GIF conversion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants