Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jan 9, 2023. It is now read-only.

Replace jpegtran with mozjpeg #30

Closed
BezPowell wants to merge 1 commit into chrisdwheatley:master from BezPowell:master
Closed

Replace jpegtran with mozjpeg #30

BezPowell wants to merge 1 commit into chrisdwheatley:master from BezPowell:master

Conversation

@BezPowell
Copy link

@BezPowell BezPowell commented Nov 23, 2020

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 reacted with heart emoji
Copy link

I support this pr!

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /