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

Lossless compression of scaled images #124

Merged
merged 1 commit into from
Sep 15, 2016

Conversation

chrisgherbert
Copy link
Contributor

Losslessly compressed the scaled versions of the images. This reduced the file size by more than 10% but should not affect image quality. A nice side effect is that sites using these images should have a significantly higher Google Page Speed score.

@hugovk
Copy link
Member

hugovk commented Sep 15, 2016

@chrisgherbert Sounds good.

How did you compress them? Is it something that can be added to resize-photos.sh, so future additions are also compressed?

@chrisgherbert
Copy link
Contributor Author

I used a GUI tool, ImageOptim, but behind the scenes I think it uses JPEGOptim (https://github.com/tjko/jpegoptim).

I could add that to the script, though I don't know if you want another dependency in addition to ImageMagick.

@hugovk
Copy link
Member

hugovk commented Sep 15, 2016

Yes please, do add it to the script, another dependency's fine. I guess if the program's not available, the other conversions will still take place.

In the meantime I'll merge this one.

Thanks!

@hugovk hugovk merged commit 9eb9870 into unitedstates:gh-pages Sep 15, 2016
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

Successfully merging this pull request may close these issues.

2 participants