Compress photos that are already compressed and smushed?

616 views
Skip to first unread message

cyclone64

unread,
Sep 5, 2014, 6:08:51 PM9/5/14
to pagespeed-ins...@googlegroups.com
I have photos on my site that I compressed in p-shop, and further compressed with a wordpress plugin when I uploaded them. PageSpeed Insights says I should compress the images by another  50%-60%.

For example, one image is 300px x 224px at 31kb, and PageSpeed says I can save 22kb o2 51% by compressing the image. First, google's math doesn't work, and second, the image has already been compressed, twice, and the wordpress plugin can't compress the image any further

Is this typical or an unusual situation, and are there any suggestions?



Carlos Lizaga Anadon

unread,
Sep 5, 2014, 6:40:02 PM9/5/14
to pagespeed-ins...@googlegroups.com
You can use Shrink-O-Matic to optimize those images (for Windows) or ImageOptim (for Mac OS X) to compress those images the best way.

Regards. 

cyclone64

unread,
Sep 6, 2014, 1:14:22 PM9/6/14
to pagespeed-ins...@googlegroups.com
Thanks for replying, but you didn't address my question. I'm not asking what programs to use to compress images.

I'm asking if anyone else has the experience of Page Speed telling them to compress images that are already compressed, and if so, what did they do about it?


Miguel García Sánchez - Colomer

unread,
Sep 7, 2014, 1:17:14 PM9/7/14
to pagespeed-ins...@googlegroups.com
Hi Cyclone, 
i "feel your pain" with some images... i have that problem when i'm using little icons. I have fixed it using "symbol fonts" as icons or making css sprite. Be sure that you have used optipng or jpegtran to make your optimizations and a part from that there are no more things that you can do (except using fonts or css sprite).

Best regards

Carlos Lizaga Anadon

unread,
Sep 8, 2014, 12:10:41 PM9/8/14
to pagespeed-ins...@googlegroups.com
Pagespeed will trigger that error when images aren't compressed the right way. Those programs that I wrote above will ensure the right compression which will mean fixing the issue with Pagespeed.

In a server side you can even use jpegoptim and the equivalent for png and run the command via ssh.

It seems that your Wordpress module isn't compressing those images the right way, so I'm suggesting you to use those programs instead and try again an analysis.

Regards.

Rick Steinwand

unread,
Sep 8, 2014, 1:45:53 PM9/8/14
to pagespeed-ins...@googlegroups.com
It's possible your images aren't sized properly.

I get a similar message for mobile, because PSI doesn't yet recognize progressive images via <picture> or <img srcset>.

Carlos Lizaga Anadon

unread,
Sep 9, 2014, 7:42:24 AM9/9/14
to pagespeed-ins...@googlegroups.com
Posting a image URI or page URi would help to determinate that.

Regards. 

cyclone64

unread,
Sep 9, 2014, 12:51:58 PM9/9/14
to pagespeed-ins...@googlegroups.com

I see. Thank you.

cyclone64

unread,
Sep 9, 2014, 1:04:38 PM9/9/14
to pagespeed-ins...@googlegroups.com
On Tuesday, September 9, 2014 4:42:24 AM UTC-7, Carlos Lizaga Anadon wrote:
Posting a image URI or page URi would help to determinate that.

Regards. 

Here's a sample snippet from Page Speed for my home page:

"Losslessly compressing http://www.mysite.com/…berglass-lampshade-lit1-300x212-copy.jpg could save 17.7KiB (57% reduction)."

The image is 22kb at 300px x 212px

How is 17.7kb 57% of 22kb? And isn't 22kb good enough for 300ox x 212px?

Here's that image's url: http://bit.ly/1sckSCK

Thank you.

Rick Steinwand

unread,
Sep 9, 2014, 4:50:37 PM9/9/14
to pagespeed-ins...@googlegroups.com
Smush.it did not find any saving of your image(s).
Can you post a URL for the page?

Carlos Lizaga Anadon

unread,
Sep 9, 2014, 7:21:27 PM9/9/14
to pagespeed-ins...@googlegroups.com
Original image size: 30,9 KB
Optimized image size: 13,1 KB

Still can be compressed the way I said above.

Regards. 

cyclone64

unread,
Sep 10, 2014, 12:07:44 PM9/10/14
to pagespeed-ins...@googlegroups.com
The photo of the image is part of a much bigger page. To make it easier to see what I'm talking about, here's the url of just the photo.
 http://bit.ly/1sckSCK

The page speed comments for the image are the same on both the full page and on the image ur page:
"Optimize the following images to reduce their size by 17.7KiB (57% reduction)."

However, the image is already only 22kb. So yes, I could save 20% if I can somehow squeeze more compression out of the already highly-compressed image, but nowhere close to the 57% that page speed claims!

cyclone64

unread,
Sep 10, 2014, 12:12:06 PM9/10/14
to pagespeed-ins...@googlegroups.com

Oh,. sorry, I misunderstood you. Here's the url for the whole page: http://bit.ly/1lNdLut

There are other problems with the page, but image compression is the major bottleneck.



On Tuesday, September 9, 2014 1:50:37 PM UTC-7, Rick Steinwand wrote:

cyclone64

unread,
Sep 10, 2014, 12:14:10 PM9/10/14
to pagespeed-ins...@googlegroups.com
I don't understand.

Did you get the 30.9kb and 13.1kb figures from jpegoptim?

Carlos Lizaga Anadon

unread,
Sep 10, 2014, 5:28:29 PM9/10/14
to pagespeed-ins...@googlegroups.com
Yep, also with Shrink-O-Matic. So before the compress it was 30.9 and after that 13.1. Sorcery!

Regards. 

cyclone64

unread,
Sep 11, 2014, 2:15:53 AM9/11/14
to pagespeed-ins...@googlegroups.com
Thanks. I'll look into this. I tired downloading jpegoptim. but I wasn't able to unzip the tar format using 7-zip, so I'll see if one of these other programs are easier to install.

So, general question, in your experience, are the wordpress compression plugins just no good?

Carlos Lizaga Anadon

unread,
Sep 11, 2014, 10:49:35 AM9/11/14
to pagespeed-ins...@googlegroups.com
Most CMS plugins will fail compressing those images by doing it just a little or going too far and making noise into the image. 
Actually, there are some uploaders that will do that work just fine but making them work with wordpress is just a pain, so i'd stick with those programs or in a server side via SSH with jpegoptim and so.

That doesn't even mean that there could be any wp plugin able to do the task just fine, but I guess that I'm too lazy to track it.

Regards.

cyclone64

unread,
Sep 11, 2014, 12:28:53 PM9/11/14
to pagespeed-ins...@googlegroups.com
Ok..Thank you.

Rick Steinwand

unread,
Sep 12, 2014, 8:47:45 AM9/12/14
to pagespeed-ins...@googlegroups.com
Carlos, thanks for your Shrink-o-matic suggestion. It did a nice job on some of my jpegs, but I noticed smaller versions of my 1200px slider (800 & 400px) actually ended up being larger after running Shrink on them. It'd be nice if it optimized to a temp file, compared size with original and discarded the temp if it was bigger like Pagespeed Service does. 

I got a nice reduction with the 1200px images by running Shrink on them, followed by JPEGmini. (330k -> 67k)

Carlos Lizaga Anadon

unread,
Sep 12, 2014, 10:44:45 AM9/12/14
to pagespeed-ins...@googlegroups.com
I think that it can be configured to save new fine with a new extension so you can keep both, will have to check it at home.

Regards.

Carlos Lizaga Anadon

unread,
Sep 12, 2014, 2:45:49 PM9/12/14
to pagespeed-ins...@googlegroups.com

As said before, here's a screenshot with settings to do that. 

Regards.

Iwona Kober

unread,
Sep 16, 2014, 3:23:38 AM9/16/14
to pagespeed-ins...@googlegroups.com
Hey,
Advise from me is using this link to optimize images - http://compressjpeg.com/ images are enough compressed for pagespeed insights.

And in my opinion PrizmImage Plugin is much beeter than Smush.It.
In fact you can set in PrizmImage 3 stages of compression.
Minus is that you have to register (free) to get API key for this plugin.

Im using it here:
http://freelanserzy.pl/szybki-wordpress/
and here is a 97/100 points https://developers.google.com/speed/pagespeed/insights/?url=freelanserzy.pl%2Fszybki-wordpress&tab=desktop

Rick Steinwand

unread,
Sep 16, 2014, 11:50:15 AM9/16/14
to pagespeed-ins...@googlegroups.com
Iwona, you can boost that score higher by adding the above fold css to your page. http://jonassebastianohlsson.com/criticalpathcssgenerator/

You'll still need to compare that with your original css to create the external css you need to load at the by the </body> tag.

Carlos Lizaga Anadon

unread,
Sep 16, 2014, 4:38:08 PM9/16/14
to pagespeed-ins...@googlegroups.com
That page is not working right now but it can be done by downloading the script via github and following the instructions.

Regards.
Reply all
Reply to author
Forward
0 new messages