Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mozjpeg compared with jpegoptim #385

Closed
zeroheure opened this issue Dec 16, 2020 · 11 comments
Closed

mozjpeg compared with jpegoptim #385

zeroheure opened this issue Dec 16, 2020 · 11 comments

Comments

@zeroheure
Copy link

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 ?

@zvezdochiot
Copy link

zvezdochiot commented Dec 16, 2020

@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.

@zeroheure
Copy link
Author

Thanks, but I want to choose before using any of them.

@zvezdochiot
Copy link

zvezdochiot commented Dec 16, 2020

@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:

@zeroheure
Copy link
Author

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)

@zvezdochiot
Copy link

@zeroheure say:

But I'm looking for general rules

Give a link to these "general rules". Then there will be something to talk about.

@zeroheure
Copy link
Author

I'm asking for general rules ;-) I don't know any of them.

@zvezdochiot
Copy link

zvezdochiot commented Dec 16, 2020

@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

@zeroheure
Copy link
Author

zeroheure commented Dec 16, 2020

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)

@zvezdochiot
Copy link

zvezdochiot commented Dec 16, 2020

@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.

@kornelski
Copy link
Member

kornelski commented Dec 16, 2020

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.

@zeroheure
Copy link
Author

Thanks to both of you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants