-
-
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
PNG Input + withMetadata() + .webp() = Input file is missing or of an unsupported image format #1242
Comments
Hello, thanks for the report. It seems to only affect WebP+metadata output where pre-multiplication occurred, e.g. resizing an image with an alpha channel. I'll be able to take a closer look in a few days. |
This was due to a bug in libvips - see https://github.com/jcupitt/libvips/pull/989 I expect v0.21.0 of sharp to provide an updated version of libvips that will include this fix. |
@lovell thanks so much for your help and for quickly fix the problem on the |
@lovell You guys have an estimative on the release date of this fix? |
@igorescobar libvips can be compiled from source and then sharp compiled against that if you need bleeding edge features/fixes such as this. |
@lovell Sure, that's fine, I was just wondering... Thanks. |
@lovell I'm assuming you don't bump the libvips build with patch versions of |
sharp v0.20.x all require libvips v8.6.1+ The next bump of the prebuilt libvips will occur with the forthcoming sharp v0.21.0, probably the forthcoming libvips v8.7.0. |
sharp v0.21.0 is now available with a prebuilt libvips v8.7.0 that contains the upstream fix. |
Hi!
I'm trying to convert a png file to webp but seems like when I add the
withMetadata
to the mix I get theInput file is missing or of an unsupported image format
. Any idea why it happens?To reproduce:
If I remove the
withMetadata()
it works fine.Worth mentioning that If I don't call
.resize
or any other operation... no error is raised but it output is a blank image.PS: JPEG Images works fine.
PS: Tested on sharp
0.20.2
and0.20.3
.The text was updated successfully, but these errors were encountered: