jpeg-archive icon indicating copy to clipboard operation
jpeg-archive copied to clipboard

WebP / PNG support (making jpeg-recompress more generic)

Open gunta opened this issue 11 years ago • 4 comments

Hi!

  1. I would like to have something like jpeg-recompress that maintain the perceived visual quality, but for WebP and also for PNG.

  2. I'm also thinking of something not only like webp-recompress and png-recompress, but in addition something bigger, that could for example given a jpeg-recompress --auto-format option and a fixed SSIM, choose automatically between a JPEG or PNG8 based on the resulting file size and quality.

What do you think?

gunta avatar Jul 16 '14 06:07 gunta

I really like this idea, but honestly I feel it is out of scope for this project.

My goals for JPEG-Archive are really based around long-term storage of my huge photo collection. I'd be hard-pressed to find an example of a photo that would compress better as a PNG rather than a JPEG. While I love WebP I'm hesitant to adopt it long-term due to how few other projects have support for it. Personally I think that in 15 years JPEG will still be much better supported than WebP - the benefits of WebP are just not significant to the average person.

That said, I'm not opposed to spinning off a more general recompression tool (e.g. image-compress or something). It could be based on jpeg-recompress and add support for other formats (PNG, WebP, future formats), other metrics (PSNR, JPEGmini), etc. Then this JPEG-Archive project could just use the new tool in JPEG mode.

I think this could be a worthwhile effort if people are interested in it.

danielgtaylor avatar Jul 17 '14 00:07 danielgtaylor

A generic tool like you said still sounds like a fantastic idea. I know I would definitely use it.

CoolOppo avatar Mar 19 '15 04:03 CoolOppo

It has been 5 years now. I think you guys might have heard that all major browsers are planning support for webp. I really hope to see some compression tool for webp because jpeg-recompress has really improved user experience for anyone using a jpeg-recompress web app. png compression is already solved by pngquant so I think that can be a lower priority. Would you by any chance write it in Go so that it's easier to distribute?

AgentCosmic avatar Feb 04 '19 03:02 AgentCosmic

Hi all.

https://github.com/ImageProcessing-ElectronicPublications/jpeg-recompress include webp-compress (PPM -> WEBP).

:question: Looking for tips on how to do the same with HEIF.

zvezdochiot avatar Dec 14 '22 12:12 zvezdochiot