Compress Images before Uploading to CDN


#1

I’m not sure if you are doing any kind of image compression before uploading images to the CDN. By either starting or improving the compression, you can help speed up page load times and lower your bandwidth cost. That’s a win/win for everyone!

I just uploaded an image that was automatically cropped and resized (so I know there is some processing going on already). The published version of the image is 302kb. I ran that same image through https://compressor.io/ and it compressed it to 53.7kb… or 82% smaller. That’s a huge difference! Think about doing that for every image on Unbounce.

There are tons of tools out there to do this.

You can pay for a pre-packaged product:
http://www.jpegmini.com/server

Or use some libraries. Here is a list that a tool called ImageOptimuses: JpegOptim, jpegrescan, jpegtran, PNGOUTZopfliPngcrush,AdvPNG, extended OptiPNG, and Gifsicle.


SVG / High resolution image work around in Adobe Illustrator
Can i use a script to speed up the page loading time?
#2

Thanks Phillip! You’re totally right that there are some big opportunities to improve the load time of page by optimizing image compression. We’ve got some plans to optimize images for retina displays now that we’ve had Mobile Responsive out for a while so I’ll make sure this idea gets included in the discussion.

Cheers!


#3

Here’s another service that has an API you can use.
https://kraken.io/

They handle all image formats, not just JPEG like JPEGmini.


#4

This is driving me especially crazy today.

I discovered some new insights while trying to optimize the following image:

Originally I had the image as a background because the image fills the whole space.

My expectation was that this image would be re-sized during publishing. Instead it was left at the original size (3960 x 2640 / 5.41 MB). That’s a HUGE file to expect all my visitors to download.

I switched from a background to an image object so Unbounce would re-size it. That reduced the file size to 525.81 KB with an image size of 940 x 470.

Then I manually ran the re-sized image through compressor.io and it reduced the size 82% to 94.46 KB.

That’s 5.41 MB to 94.46 KB… much better for my visitors and my bottom line.

PLEASE, PLEASE, PLEASE, automate this process!


#5

Great catch, Phillip!


#6

Hi Phillip,

I’m glad that you found a workaround that helps for the time being. We are going to look at image compression and how to allow for retina quality images (for devices that support them) as part of a larger image management project. It is definitely on our radar.  
I’m sorry I can’t promise a quick resolution. Currently our development teams are fully booked with projects. As soon as we finish up some of the major features were working on, I will make sure that we look at this project.


#7

Thank you for recommending compressor.io - I had great success in modifying an image for mobile.


#8

Hello, any news on automatically shrinking background images ?


#9

Yes, seems silly that this still isn’t part of the tool especially considering that the vast majority of users are increasingly accessing landing pages via high resolution mobile devices.