-
-
Notifications
You must be signed in to change notification settings - Fork 656
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
Flickering padded webp images #1469
Labels
Comments
Huh how completely bizarre. I'll have a look, thanks for reporting this. |
jcupitt
added a commit
that referenced
this issue
Jan 6, 2020
We were always setting page-height in thumbnail, even on single-frame images. This could cause problems if the image height was later increased by a factor of the height -- non-animated images could accidentally turn into animated images. #1469
Sorry for having sat on this. It should be fixed in git master, and the fix should be in 8.9. Thanks again for reporting the dumbness. |
Thanks! |
I'll close, I think it's all done. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey,
I'm having quite a peculiar problem with webp images, which seems to happen at least on libvips 8.8.2 and 8.8.3 (built locally), but seems not to happen with 8.7.4 (from apt). We observed it for
libwebp
versioned0.6.1
and1.0.3
.The sequence of actions is as follows:
sintel-in.png
), and store the result as a vips image (t.v
):vips thumbnail sintel-in.png t.v 1920 --height 1080 --size both
t.v
) to 2x the height, and store as a webp image (sintel-out.webp
):vips gravity t.v sintel-out.webp centre 1920 2160
After this, when opened in a browser, the
sintel-out.webp
image will be... flickering (see output image below). If I open the image in e.g. gimp, it will show only the top half of the image...This seems to happen only if the pad size is exactly 2x the image height (width doesn't matter), only for webp images, and only after the intermediate step of storing it as a vips image. If I was doing this from the command line, I could simply save the intermediate image to a different format, but I'm using
pyvips
, where the same result is achieved with:Without
thumbnail_image
it works properly.It's also noteworthy that if the image is opened with
access='sequential'
, the write operation will fail with:Input image:
![sintel-in](https://user-images.githubusercontent.com/16303679/68928580-aeeefa80-078a-11ea-9a85-7c9cbb2ba5a1.png)
Output image:
![sintel-out-recording](https://user-images.githubusercontent.com/16303679/68929367-82d47900-078c-11ea-8c58-7b7053bc5e39.gif)
Well, not exactly the output image, because github does not allow me to upload a webp image, but this is a screen recording of how the output image looks like when opened in a browser.
Please advise?
The text was updated successfully, but these errors were encountered: