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

WebP should not use lossless encoding for (most) thumbnailing #1054

Open
discomrade opened this issue Feb 21, 2024 · 0 comments
Open

WebP should not use lossless encoding for (most) thumbnailing #1054

discomrade opened this issue Feb 21, 2024 · 0 comments
Labels

Comments

@discomrade
Copy link
Contributor

The WebP option for thumbnails has the webp:lossless option enabled. However, if an image is being downscaled or upscaled to make a thumbnail, there is no point using a lossless file encoding because the data is already changed. This would only make sense if a lossless data type (e.g. PNG, GIF) is remaining the exact same size in its thumbnail (e.g. if it's smaller than the thumbnail size, like an icon or sprite, and the fit setting doesn't upsize it). For all other cases, this will just ignore the admin's quality option and use a lossless encoding which creates pointlessly large filesizes.

note: I've only tested with ImageMagick, I'm not sure how GD works.

@shish shish added the Bug label Feb 21, 2024
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

2 participants