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

Improvement request: document how to reduce images by 90% #8

Closed
michaeleiselsc opened this issue Dec 20, 2016 · 2 comments
Closed

Improvement request: document how to reduce images by 90% #8

michaeleiselsc opened this issue Dec 20, 2016 · 2 comments

Comments

@michaeleiselsc
Copy link

michaeleiselsc commented Dec 20, 2016

As part of getting people to leverage WebP for their app, it would be great to see how to get the 90% reduction that is discussed in http://engineering.dollarshaveclub.com/shaving-our-image-size/. I tried an images with the -lossless flag, and I didn't get that 90% reduction, so then I tried lossy with -q 90 and got an even larger image! Here's the image I used:

preview_tool_accessory_background 3x

Perhaps I'm not using the correct flags? Or perhaps the dollar shave club wasn't compressing pngs as far as they could? Any suggestions would be greatly appreciated, thanks!

@michaeleiselsc
Copy link
Author

(of course, for that specific image, we could also be using a UIView with some clipping strategy)

@daltoniam
Copy link
Contributor

Your file size reduction percentage is going to vary based on the PNG being used. You aren't always going to get 90% difference especially when the PNG is already a small file size (normally single color, simple design, etc). We saw a 90% size reduction because we have very detailed and large images.

Also there are some case studies that can be found here:

@Morkrom Morkrom closed this as completed Jan 31, 2017
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

3 participants