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

[Question]: jpegtran, MozJPEG optimizers #456

Open
rela589n opened this issue Jul 27, 2024 · 2 comments
Open

[Question]: jpegtran, MozJPEG optimizers #456

rela589n opened this issue Jul 27, 2024 · 2 comments

Comments

@rela589n
Copy link

Hi there!

I'd like to ask about imagor's available image optimization options.

In Thumbor there's particular feature that's available - jpegtran optimizer.
I haven't tested it myself, but currently I seek for a tool that besides the rest of the functions would allow image size optimization and that's why I ask if there's native support from imagor, since I haven't found any mention in the README?

Also, I see that there's -vips-mozjpeg option that enables MozJPEG compression. Is it natively bundled in the docker image, or is it necessary to build a custom docker image to have this option available?

FWIK, mozjpeg seems to do a better compression, while taking more time compared to jpegtran. If possible, I would really appreciate it if you could share from your own experience what size reduction we could expect from these image optimizers.

Thank you

@cshum
Copy link
Owner

cshum commented Aug 7, 2024

If MozJPEG is being complied on host machine, -vips-mozjpeg would enable MozJPEG compression. Other it would be no effect.

MozJPEG is currently not bundled with docker image, due the default libjpeg-turbo being used by many other dependencies, and we have yet to make it work alongside with other dependencies.
https://github.com/cshum/imagor/blob/master/Dockerfile

However if anyone manages to make MozJPEG complie successfully alongside all the other dependencies within the Docker image, I am all for a PR.

@rela589n
Copy link
Author

rela589n commented Sep 7, 2024

Got it,

Thank 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

2 participants