-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
GIF resize throws Error #162
Comments
Hi Joel, whilst GIF files are supported, GIF data is unsupported for Stream-based input. https://github.com/lovell/sharp#sharpinput
This is because libvips decompresses GIF data using *magick, which doesn't provide any stream-like support. |
Thanks! Sorry, I overlooked that. I'll buffer the GIF stream first. |
No probs. For GIF you'll need to "buffer" to the filesystem (tmpfs will suffice) then provide the filename to sharp's constructor. |
@lovell how would I output the gif, after transform? is gif output supported? |
No, sorry. |
NP. I'll just switch to gm on unsupported formats. Thanks for the quick followup! |
Thanks to @mcuelenaere, sharp v0.9.3 adds support for GIF input via Stream and Buffer. You'll need to compile libvips from the latest source to take advantage. |
ooooh! Sweet! Thanks for the heads up @lovell |
Closing this inactive question - feel free to re-open if you have a related question. |
sharp@0.9.1
vips-7.40.11-1.fc20.x86_64
vips-devel-7.40.11-1.fc20.x86_64
node v0.10.33
Error: Input buffer contains unsupported image format
calling code
The text was updated successfully, but these errors were encountered: