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

throw vips::VError("Processed image is too large for the WebP format"); #1703

Closed
eyun-tv opened this issue May 17, 2019 · 5 comments
Closed
Labels

Comments

@eyun-tv
Copy link

eyun-tv commented May 17, 2019

p2388621457
this picture throw vips::VError("Processed image is too large for the WebP format");

@lovell
Copy link
Owner

lovell commented May 17, 2019

"WebP is bitstream-compatible with VP8 and uses 14 bits for width and height. The maximum pixel dimensions of a WebP image is 16383 x 16383."

https://developers.google.com/speed/webp/faq#what_is_the_maximum_size_a_webp_image_can_be

@urwork
Copy link

urwork commented May 19, 2019

maybe can add a parameter "fit_max_size" and auto resize the picture
for example

   sharp(data).webp({
        quality: 75,fit_max_size:true
    })

@lovell
Copy link
Owner

lovell commented May 19, 2019

I think that option might introduce too much complexity. Would having the resultant too-large dimension(s) in the error message help?

@jcupitt
Copy link
Contributor

jcupitt commented May 20, 2019

The webp developers plan to fix this by adding support for tiled images.

Unfortunately webp has lost some momentum over the last few years and I don't know if they expect to add this feature any time soon.

@lovell lovell closed this as completed Jun 2, 2019
@jcupitt
Copy link
Contributor

jcupitt commented Jun 2, 2019

There's also WEBP in TIFF as a way of supporting larger images, see: libvips/libvips#1325

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

No branches or pull requests

4 participants