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

Error on resizing animated gif #245

Closed
lewispham opened this issue Jul 25, 2015 · 9 comments
Closed

Error on resizing animated gif #245

lewispham opened this issue Jul 25, 2015 · 9 comments
Labels

Comments

@lewispham
Copy link

I got the error Unsupported ouput __input while I was trying to resize an animated gif via this code.

var sharp = require('sharp');
inputGIF.pipe(sharp().resize(width,height)).pipe(output);

P/s. I've just installed sharp yesterday

@lovell
Copy link
Owner

lovell commented Jul 26, 2015

Hi Lewis, I guess you discovered that GIF output is unsupported. (For animated GIF input, only the first frame is used.)

@hutaoer
Copy link

hutaoer commented Jan 29, 2016

I used 'gm' lib before which could resize animated gif。But 'gm' depends on 'imagemagic' that is so big and very difficult to be installed on my server.

@zilions
Copy link

zilions commented Jun 7, 2016

Are animated GIFs still unsupported by Sharp?

@lovell
Copy link
Owner

lovell commented Jun 7, 2016

@zilions GIF output is unsupported.

@prmichaelsen
Copy link

this isn't very well documented anywhere

@lovell
Copy link
Owner

lovell commented Sep 15, 2017

@prmichaelsen PRs to update docs are always welcome.

@papandreou
Copy link
Contributor

I'd recommend using gifsicle for resizing gifs, especially animated ones. I've found that GraphicsMagick and ImageMagick both screw up certain exotic features. (I'm basing that on having run an internal image r'n'r service used by 400.000 users where arbitrary user-uploaded images are processed.)

There's a node.js stream wrapper for gifsicle here: https://www.npmjs.com/package/gifsicle-stream

@adityapatadia
Copy link

@lovell Libvips seems to have GIF support now. Can it work with sharp? libvips/libvips#1167

@lovell
Copy link
Owner

lovell commented Feb 10, 2019

@adityapatadia Please see #1372

Repository owner locked and limited conversation to collaborators Feb 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

7 participants