Does anyone know how to convert my images from webp to small-ish png? Right now when I run dwebp, the resulting png is at least triple the file size of the webp. But when my camera saves directly to png, it's same quality but much smaller filesize. What's with this?

@worldsendless Going from (properly) lossy to lossless is always going to result in a larger file, as I believe the lossless part picks up any artifacts etc from the lossy compression, which happens to be the hardest part to compress.

Maybe dwebp is just really bad at encoding PNG's? In that case pngcrush will make the file smaller.

You might also try converting with ImageMagick.


Really, you want to start with lossless and then decide if you want to move to lossy, not the other way round.

If you have quite a few images in webp, you should probably just leave them in webp, as they aren't going to lose quality unless you re-encode them.
Follow

@Suiseiseki Here I thought that both png and webp were lossless formats. I tried with optipng, cwebp, and Gimp, with no noticeable differences to the file size

@worldsendless webp does have a lossless mode, but most encoders will default to the lossy mode.
Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.