Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I want to store a huge number of images on Amazon S3 (served via Cloudfront). Currently the way I am doing is simply dumping the images and having basic HTTP Cache headers set to a month so that users can have fast browsing experience. But I still want more fast experience.

Is there anyway I can compress my images (like gzip for text) and users can access that image resource on their browsers.

share|improve this question
1  
Unless you're uploading RAW/BMP files, image files are already extensively compressed. Are you resizing them to the size they'll appear on the web, at least? –  ceejayoz Apr 14 at 20:05
    
Yes I am having resized JPEGs. –  Sushant Gupta Apr 14 at 20:08
    
@EEAA dude, I wrote I am serving via cloudfront (its a CDN only) –  Sushant Gupta Apr 14 at 20:16
    
whoops, missed that. :) –  EEAA Apr 14 at 20:17
2  
@SushantGupta JPEGs are already compressed. Unless you want to re-encode them with a lower quality setting (which'll make them look significantly worse, usually) they're already as good as they're getting. –  ceejayoz Apr 14 at 20:25

1 Answer 1

up vote 6 down vote accepted

JPEGs are already inherently a compressed format, so further compression isn't really something that'll give you any significant benefit. You could reencode them with a lower quality setting but that'll compromise their appearance significantly.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.