`mozjpeg` compared with `jpegoptim`
zeroheure opened this issue · comments
I am using mozjpeg
for a few months (and I like it !). Recently, I compared with jpegoptim
on simple images (typically one object on white background). I successfully target the same low size, achieving good quality (like low quality in https://imageoptim/online).
For non-specialists, is there general simple rules to help choose between mozjpeg
and jpegoptim
?
@zeroheure say:
For non-specialists, is there general simple rules to help choose between mozjpeg and jpegoptim ?
ℹ️ See:
PS: jpegoptim
can be compiled with mozjpeg
by swapping head and solib.
Thanks, but I want to choose before using any of them.
@zeroheure say:
Thanks, but I want to choose before using any of them.
So choose! I gave you the links to the metrics.
See also:
- https://github.com/danielgtaylor/jpeg-archive (jpeg-compare)
There is something I don't understand... Dssim and Butteraugli are here to compare tfhe result of operation — in my case, applying mozjpeg
or jpegoptim
, right ? But I'm looking for general rules to choose between mozjpeg
or jpegoptim
before applying one of them.
(thanks anyway)
@zeroheure say:
But I'm looking for general rules
Give a link to these "general rules". Then there will be something to talk about.
I'm asking for general rules ;-) I don't know any of them.
@zeroheure say:
I don't know any of them.
Do not worry. No one knows.
PS: I personally use SSIM+SMALLFRY+SHARPENBAD
based summary unified metric: https://github.com/ImageProcessing-ElectronicPublications/jpeg-recompress
So there isn't any solution to help someone to decide which tool to apply ? I'm just looking for guidance, some simple rules like "if there is few colors, try jpegoptim first, mozjpeg will not be much better".
I 've forgot to say that it is for web images.
(I'm browsing your repositories)
@zeroheure say:
I 've forgot to say that it is for web images.
Use https://github.com/technopagan/adept-jpg-compressor . You will choose the parameters and the encoder yourself.
jpegoptim
is not an alternative to mozjpeg, but one of the ways mozjpeg can be used.
jpegoptim
uses libjpeg, so if you compile jpegoptim
with mozjpeg's version of libjpeg, you will have all the benefits of both. This is what ImageOptim
does.
Thanks to both of you.