Skip to content
New issue

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

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

Already on GitHub? # 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

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

No branches or pull requests

1 participant