Skip to content
This repository was archived by the owner on Jan 9, 2023. It is now read-only.

Conversation

@BezPowell
Copy link

This pr replaces the imagemin-jpegtran plugin with imagemin-mozjpeg. This should result in smaller filesizes for jpegs and progressive encoding by default, closing issue #28.

The mozjpeg defaults seem pretty sane from a run on my site, but exposing some of the options might be a nice improvement.

@cascading-jox
Copy link

I support this pr!

@BezPowell
Copy link
Author

I support this pr!

I've actually being using this for a while and in my testing it looks like mozjpeg always re-encodes files which can result in a loss of quality. This behaviour could be what people want, in which case something like imagemin-jpeg-recompress might be a better fit, as it should attempt to do this with as little loss in quality as possible. Alternatively, using imagemin-jpegtran with progressive enabled would be fully lossless.

While mozjpeg works fine for my personal use, it's probably not the best default option for everybody, so I should probably close this pr.

@BezPowell BezPowell closed this Feb 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants