Current time: 11-15-2018, 02:24 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 2 Vote(s) - 2.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Compress Images
08-27-2012, 03:45 PM
Post: #1
Compress Images
During the testing, I get a suggestion to compress images.

But I have already optimized my images using Yahoo Smush It, so how to further compress images?

And I use shared hosting, so can anything be done about First Byte Time (back-end processing) or persistent connections (keep alive)
Find all posts by this user
Quote this message in a reply
08-27-2012, 10:38 PM
Post: #2
RE: Compress Images
Smush It only does lossless optimizations (stripping out comments, etc). WebPagetest checks for lossy optimizations. Basically your jpeg's were saved at a higher quality level than is probably necessary. WebPagetest uses a (very conservative) Jpeg Quality level 85 as the target (usually you can go to at least 75 without any visible issues).

First Byte times on shared hosting can be difficult to fix. You can try to minimize the amount of database interaction, disable plugins (assuming somerhing like wordpress) and cache the generated HTML pages but there's only so much you can do (and it is a common problem with shared hosting).

Persistent Connections are harder. If you can enable something like cloudflare on your shared hosting plan then you can work around the persistent connection problem. Otherwise if support can't address it my recommendation is to show your displeasure with your wallet and switch to a shared host that doesn't have the same problems.
Visit this user's website Find all posts by this user
Quote this message in a reply
08-31-2012, 03:21 AM
Post: #3
RE: Compress Images
Thanks for the reply.
Find all posts by this user
Quote this message in a reply
09-07-2012, 05:30 AM
Post: #4
RE: Compress Images
Compressing images with gzip is not of much interest, as GIF, JPEG or PNG are already compressed formats. Compressing them would just be a loss of CPU ressource on your server, without any gain in bandwidth.

# 480 weeks
<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
Header set Cache-Control "max-age=290304000, public"
</FilesMatch>

# 2 DAYS
<FilesMatch "\.(xml|txt)$">
Header set Cache-Control "max-age=172800, public, must-revalidate"
</FilesMatch>

# 2 HOURS
<FilesMatch "\.(html|htm)$">
Header set Cache-Control "max-age=7200, must-revalidate"
</FilesMatch>

<ifModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</ifModule>
Find all posts by this user
Quote this message in a reply
01-24-2013, 02:06 PM
Post: #5
RE: Compress Images
Let me know if you're still having problems or contact me at http://www.digitalmgmt.com
Visit this user's website Find all posts by this user
Quote this message in a reply
05-15-2014, 09:28 PM
Post: #6
RE: Compress Images
(08-27-2012 03:45 PM)someone Wrote:  During the testing, I get a suggestion to compress images.

But I have already optimized my images using Yahoo Smush It, so how to further compress images?

And I use shared hosting, so can anything be done about First Byte Time (back-end processing) or persistent connections (keep alive)


I don't think enjoys mentioned ImageOptim, so give that a try: http://imageoptim.com/
Find all posts by this user
Quote this message in a reply
05-09-2015, 12:08 PM
Post: #7
RE: Compress Images
ImageMagick works well.

Post the link of your site + someone may be able to assist you with other optimizations too.

Like help speeding up your site? Skype me @ ID davidfavor for a quote. Be sure to include your site name in your Skype Add Contact request.
Find all posts by this user
Quote this message in a reply
05-09-2015, 09:53 PM
Post: #8
RE: Compress Images
Sometimes, simply switching which file formats your using can save some bytes - different image file formats are good at different things.

For example, if your images have a lot of flat colours and a limit palette (like a logo maybe?) then a GIF may be more appropriate. PNG typically wins out over JPG for smaller photograph like images, but JPG may win out in terms of file size for larger images - it may be worthwhile playing around with the formats to find out which works best for which images.

As pmeenan pointed out, using a higher compression amount on JPEG images will decrease file sizes (depending on the image and the location). As guidance, use higher compression ratios for background images as they often don't need the finer detail that product images and "hero" shots do.
Find all posts by this user
Quote this message in a reply
05-09-2015, 10:11 PM
Post: #9
RE: Compress Images
WebsiteSpeedExperts is right on the money.

Using .jpg is many times a good balance, because images can be made progressive, which is a big win.

You're best served to post a link to your site, so someone can actually see what type of images you have + by type I mean both the image extension - gif/jpg/png - and pull down a copy of one of your images to determine things like number of close colors in image to see if image format conversion will help, like going from png -> gif or similar.

Without your site link, it's all speculation + no real way to give you any clear direction on what to do next.

Like help speeding up your site? Skype me @ ID davidfavor for a quote. Be sure to include your site name in your Skype Add Contact request.
Find all posts by this user
Quote this message in a reply
08-26-2015, 11:41 PM
Post: #10
RE: Compress Images
Site speed is most important for success in online business , but images takes lots of time to load initally my site was very slow to render images , now after compression site gear up and working fast.. using i use tool image compress tool (ofcourse it loose little quality) but need speed site for the visitors. and am a dot.net programmer i write small code for compression in web.config file.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)