Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Add WebP support #151
We can probably only safely enable this for jpgs. Lossless png tends to end up larger as a lossless webp image, and we can't assume a store owner would want to convert from lossless >> lossy (png >> lossy webp).
I think the link only says that lossless PNG to lossy WebP (or any lossy to lossless) can increase file size. The issue with file size increasing on a conversion to lossy is because of YUV420 downsampling. Lossless WebP doesn't downsample colors, and near the bottom it states