webp-express icon indicating copy to clipboard operation
webp-express copied to clipboard

Enhancement: Convert to webp from full-sized jpegs

Open Forza-tng opened this issue 1 year ago • 0 comments

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

Forza-tng avatar Jul 09 '23 13:07 Forza-tng