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: Convert to webp from full-sized jpegs #588

Open
Forza-tng opened this issue Jul 9, 2023 · 0 comments
Open

Enhancement: Convert to webp from full-sized jpegs #588

Forza-tng opened this issue Jul 9, 2023 · 0 comments

Comments

@Forza-tng
Copy link

Forza-tng commented Jul 9, 2023

WordPress generates several sizes of of uploaded files. When converting them to webp, webp-express, uses each resized image as source when converting to webp. This means that jpeg encoding errors are kept in the webp target and that webp files can never look better than their jpeg counterparts

webp-express could achieve better quality by using the original large source file and do scaling during the encoding. This way we end up with smaller webp files while retaining better visual quality.

Examples:

cwebp -mt -resize 1024 768 -m6 source.jpg
magick source.jpg -filter Lanczos -distort Resize 1024x768
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant