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?
Conversation
Notices
-
Embed this notice
(webdev Tory) :emacs: (worldsendless@qoto.org)'s status on Wednesday, 08-Mar-2023 19:12:52 JST (webdev Tory) :emacs: -
Embed this notice
翠星石 (suiseiseki@freesoftwareextremist.com)'s status on Wednesday, 08-Mar-2023 19:12:51 JST 翠星石 @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. -
Embed this notice
翠星石 (suiseiseki@freesoftwareextremist.com)'s status on Friday, 10-Mar-2023 10:15:30 JST 翠星石 @worldsendless webp does have a lossless mode, but most encoders will default to the lossy mode. -
Embed this notice
(webdev Tory) :emacs: (worldsendless@qoto.org)'s status on Friday, 10-Mar-2023 10:15:31 JST (webdev Tory) :emacs: @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
-
Embed this notice