3 ms·
Automatically Compressing Your Amazon S3 Images Using Yahoo’s Smush.it Service
- SabrinaDent 16y agoAutosmush scans your S3 bucket, runs each file through Smush.it, and replaces your images with their compressed versions. I think I'm in love.
- coderdude 16y agoDepending on how many images you have. Doesn't that mean that it has to download each image and then re-upload them? Could be quite a cost for minimal savings if you have a large number of images to store. Edit: I'm talking about 20,000+ product images, not the images or files associated with a layout.
- njharman 16y ago> Could be quite a cost for minimal savings if you have a large number of images Could be, could be a large saving for minimal investment in time+money. depends on how much downloading of the images occurs normally.
- bluesmoon 16y agoThe blog post mentions how he fixes the issue (at least for repeated runs)
- nostromo 16y ago> minimal savings For me this isn't about saving money, it's about load time.
- bkrausz 16y agoWouldn't it be free (or close to it) if you run it on an EC2 instance?
- simonw 16y agoI just used Smush.it to optimise a couple of images on http://lanyrd.com/ http://lanyrd.com/ (the logo and the background image) and it knocked a good 5KB off the page load - not too bad at all. Our filenames are generated from the truncated SHA1 hash of the file contents, so logo.png becomes logo.16c7e567.png - which means we can safely set a far-future expires header and serve through Amazon CloudFront without worrying about changes to the images, JavaScript or CSS not propagating to the live site.
- imurray 16y agoThanks for the example. You can do another 1KB better than Smush did for you: A mirror of your logo: http://homepages.inf.ed.ac.uk/imurray2/tmp/logo.16c7e567.png http://homepages.inf.ed.ac.uk/imurray2/tmp/logo.16c7e567.png A smaller file: http://homepages.inf.ed.ac.uk/imurray2/tmp/logo.squish.png http://homepages.inf.ed.ac.uk/imurray2/tmp/logo.squish.png My notes on squishing images: http://homepages.inf.ed.ac.uk/imurray2/compnotes/squish_images.html http://homepages.inf.ed.ac.uk/imurray2/compnotes/squish_imag...
- simonw 16y agoNeat - thanks for that.
- steve19 16y agoIs there a tool that can do this for a local directory? I have Google'd but could not find one.