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

How to enable mozjpeg in Sharp? #354

Open
stulnikov-roud opened this issue Jul 2, 2022 · 1 comment
Open

How to enable mozjpeg in Sharp? #354

stulnikov-roud opened this issue Jul 2, 2022 · 1 comment

Comments

@stulnikov-roud
Copy link

I want to optimize images, is it possible to enable mozjpeg?

@sawyerclick
Copy link
Contributor

This would involve some logic to be written into format.ts to allow for format-specific options to be passed.

If we were to add mozjpeg, it would open the door to go ahead and add the other format-specific parameters with some logic to ensure that a format-specific parameter is passed alongside its format (i.e. both must exist in query format=jpeg&mozjpeg)

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