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

Enhancement: expose libwebp preset option for control over lossy WebP output #3639

Closed
rawriddims opened this issue Apr 20, 2023 · 3 comments
Closed

Comments

@rawriddims
Copy link

rawriddims commented Apr 20, 2023

Sharp is very good, and has mozjpeg as well. So i decided i will use it, after have been trying almost everything else.
But there's just one little thing I'm missing. In CWebP there is a magic option: the -preset string with different values for photo, picture, drawing, icon, text. Is it possible to have some more .options for webp with Sharp in the future?

@lovell lovell changed the title Chances to have some more .options for webp? Enhancement: expose libwebp preset option for control over lossy WebP output Apr 20, 2023
@lovell
Copy link
Owner

lovell commented Apr 20, 2023

The WebP preset option for lossy images is supported by libvips but not yet exposed by sharp, so this would make a good enhancement.

@rawriddims
Copy link
Author

I'd love that

@lovell lovell added this to the v0.32.3 milestone Jul 12, 2023
@lovell
Copy link
Owner

lovell commented Jul 14, 2023

Added in v0.32.3 - see https://sharp.pixelplumbing.com/api-output#webp

@lovell lovell closed this as completed Jul 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants