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

Smush comic images to save disk space and reduce page load time #51

Open
jodal opened this issue Jun 7, 2012 · 1 comment
Open

Smush comic images to save disk space and reduce page load time #51

jodal opened this issue Jun 7, 2012 · 1 comment
Labels

Comments

@jodal
Copy link
Owner

jodal commented Jun 7, 2012

The size of comic images can be reduced without loosing any quality by pushing them through lossless optimization, like e.g. Yahoo's www.smushit.com can do for you. Smushing comics would save a lot of disk space and reduce page load time.

Some work have already been done by @adamcik on a tool for smushing the images in comics' archive. See the file bin/smush in the repo for details.

@adamcik
Copy link
Contributor

adamcik commented Jun 7, 2012

See https://developers.google.com/speed/docs/best-practices/payload#CompressImages and http://developer.yahoo.com/performance/rules.html#opt_images for tips. You might also be able to convert PNG24 to PNG8 in some cases saving a lot of size. I was also thinking about trimming whitespace, but that feels like a bad idea.

For insanely large images splitting images might also be a good idea, but one would need to do something like http://stackoverflow.com/questions/2933084/is-cropping-of-jpeg-images-using-the-pil-lossless if you want it to be a lossless operation.

Or just 'jpegtran -crop WxH+X+Y -copy none -optimize -perfect -outfile output.jpg input.jpg' which I tested on one such image, in that case there was no reduction in size, but at least it can be downloaded in parallel.

@jodal jodal removed this from the v2.4 milestone Oct 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants