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

JPEG → JPEG optimization: keep the original image if the output image is bigger than the input one #44

Open
flozz opened this issue Sep 22, 2022 · 0 comments

Comments

@flozz
Copy link
Member

flozz commented Sep 22, 2022

When doing a JPEG to JPEG optimization, we should never have an output image bigger than the input one.

  • If the guetzli+mozjpeg reencoding produce a smaller image → keep it
  • else, try a mozjpeg (lossless) optimization alone, and if it produces a smaller image → keep this one
  • else, just remove metadata and keep the original encoding.

Issue #43 must be resolved before this one

Related issue: flozz/yoga-image-optimizer#14

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

1 participant