Compress JPEG & PNG images

  • Popularity Score 2804 Popularity Score

    Popularity ScoreReferrals to Site/Downloads

    0 0 1+ 1+ 250+ 250+ 1000+ 1000+ 10000+ 10000+

Make your webshop faster. This plugin automatically optimizes your product images with TinyJPG and TinyPNG.
Compatible with:
This extension is currently unavailable on Magento Connect. Please contact the developer.

You will be re-directed to the developer's website to complete your purchase.

You must be registered and logged in to get extension key.
In order to get this extension, you must be logged in to the Magento Community. Click here to login or register.

Magento Connect 2.0

Magento Connect 2.0

Previous Next

Compress JPEG & PNG images

Make your store faster by compressing your JPEG and PNG images. This extension automatically optimizes your images by integrating with the popular image compression services TinyJPG and TinyPNG.

Major new update 2.0 - July 2016

The extension now recognises duplicate images in your Magento store. This will save even more bandwidth and reduces the number of compressions. The settings screen has been rewritten to show the latest compressions. And all compressed images are now stored separately so they don't get lost when you clear the cache. We are very happy with all these new improvements, hope you like them as much as we do!

How does it work?

When you view a product in your webshop Magento creates different image sizes in its cache folders. This extension will compress these images for you automatically.

In the background your product images are uploaded to the TinyJPG or TinyPNG service and analyzed to apply the best possible compression. Based on the content of the image an optimal strategy is chosen. The result is sent back to your Magento webshop and saved in your cache folder.

On average JPEG images are compressed by 40-60% and PNG images by 50-80% without visible loss in quality. Your webshop will load faster for your visitors, and you’ll save storage space and bandwidth!

Getting started

Obtain your free API key from https://tinypng.com/developers. The first 500 compressions per month are completely free, no strings attached! As each product will be shown in different sizes, roughly 100 products can be uploaded to your Magento webshop and compressed for free. You can also change which of the generated image sizes should be compressed, because each one of them counts as a compression. If you’re a heavy user, you can compress additional images for a small additional fee per image by upgrading your account. You will then be charged a small fee for each additional image compressed.

Installation instructions

The extension can be installed on your system as follows:
  1. Use Magento Connect Manager and install the extension
  2. Log off first and then log in to your Magento Admin Panel
  3. Go to System > Configuration
  4. Click on "JPG & PNG compression"
  5. Enter your TinyPNG API key
  6. Select the image types to be compressed
  7. Upload a new image and view it in your catalog
You can clear the existing image cache in case you like to compress all existing product images:
  1. Go to System > Cache Management
  2. Click on "Flush Catalog Images Cache"
  3. Now view your catalog so the image cache is recreated
  4. The product images will be compressed automatically
You can inspect the number of compressions from the configuration page or by logging in to the TinyPNG developer section on https://tinypng.com/developers.

Important notice: Some Magento installations seem to generate duplicate product images in the image cache. This leads to a much higher number of compressions than should be strictly necessary. We have solved this issue with version 2.0, if you still seem to run into similar issues with higher numbers of compressions please contact support@tinypng.com so we can work together on a resolution.


This plugin is compatible with most Magento extensions, but not all of them. We have done a great deal of testing and discovered the following extensions which change the "Product Image" model to be incompatible: Change The Image Path by Lightyear, ImageCDN by Astound Commerce (One Pica) and Named Images by MageSpecialist.

Using a CDN

This extension improves the speed of your store. The speed can be further improved by installing a CDN. You will not need to install an extension to make use of a CDN because Magento has build-in native support for this. You can simply register with a CDN provider and configure the settings in the Magento admin.

Below are some links to popular CDN providers and instructions for setting it up with Magento:
- Amazon CloudFront - Magento and Amazon’s CloudFront CDN – The Easy Way
- Cloudflare - Using CloudFlare with Magento
- CDN77.com - Magento CDN Integration
- CDN.net - Integrate CDN.net with Magento
- MaxCDN - Setting up a CDN using Magento’s native support
- KeyCDN - Integrate KeyCDN with Magento

SEO and pagespeed improvements

Using this extension to compress product images and installing a CDN are beneficial for your SEO. You may further improve the pagespeed score by installing Magento extensions like the following:
- Advanced SEO Suite by Mirasvit - improves your performance in search engines
- Creare SEO - provides extra features and settings to help enhance Magento's SEO performance
- SEO Suite Ultimate by MageWorx - powers up you site ranking and cuts SEO workload
- Speedster by Fooman - speeds up your store by combining, compressing and caching Javascript and CSS files

Developer notes

For debugging purposes you can enable logging in the extension under the 'Advanced' tab. When this is enabled and the extension is installed correctly it will save its progress to the file /var/log/image-optimization.log. You can also inspect your installation with the Modules Conflict Detector by Alekseon. It will inspect your installation, look for extensions and also shows any extensions that may create problems.

Magento 1 Enterprise Edition

A separate version of this extension has been developed for the latest Magento Enterprise Editions version 1.12, 1.13 and 1.14. If you are an enterprise user please visit the Enterprise edition download page for more information. The enterprise edition is provided by our implementation partner TIG who also offer dedicated technical services and solutions for enterprise users.

Magento 2 Community Edition

A version of this extension has also been developed for Magento 2. If you are interested visit the Magento 2 extension download page for more information.
M1 Extension Versions

Version 2.0.1

2017-01-10 10:52:58
  • Version number: 2.0.1
  • Stability: Stable
  • Compatibility: 1.7, 1.8, 1.8.1, 1.9, 1.9.1, 1.9.2
You must be registered and logged in to get extension key.

Magento Connect 2.0

Magento Connect 2.0

Release notes:
- Support for servers with open basedir enabled.
- Better warnings.
- Linting & speed improvements for Travis CI.
- Added an space to an sentence for readability.
- Better handling of the Tinify\AccountException so the logs won't
be clutherd.
- Updated the Tinify PHP client.

Version 2.0.0

2016-07-20 11:09:04
  • Version number: 2.0.0
  • Stability: Stable
  • Compatibility: 1.7, 1.8, 1.8.1, 1.9, 1.9.1, 1.9.2
You must be registered and logged in to get extension key.

Magento Connect 2.0

Magento Connect 2.0

Release notes:
- The extension now recognises duplicated images to save extra bandwidth and reduce the number of compressions.
- Added status to indicate the API key is valid.
- The configuration page now shows the latest compressions including savings.
- You can now click on the latest optimized images to see the results.
- Added the total number of compressions for the current month.
- A new test mode allows testing of the extension in production environments without actually changing any images that visitors will see.
- Added logfile options which are directly available from the Magento configuration page.

Improved error handling

2015-05-15 14:15:14
  • Version number: 1.0.1
  • Stability: Stable
  • Compatibility: 1.9
You must be registered and logged in to get extension key.

Magento Connect 2.0

Magento Connect 2.0

If image cannot be compressed the extension will skip the image. Previous version showed placeholder images. If logging is enabled you can see the details in the log.

First version

2015-04-10 16:21:27
  • Version number: 1.0.0
  • Stability: Stable
  • Compatibility: 1.9
You must be registered and logged in to get extension key.

Magento Connect 2.0

Magento Connect 2.0

First version
Get Help

Support for This Extension

The best place to start if you need help with a specific extension is to contact the developer. All Magento developers have both a contact email and a support email listed.

Magento Platform Support

If you need support for a Magento platform, there are different options for support depending on which Magento platform you are using. Below are links for specific platforms.


About the Developer

This extension was developed by and is supported by TinyPNG

In order to upload extension, you must be logged in to the Magento Community. Click here to login or register.



* Required Fields

Close window

Forgot Your Password?

Please enter your email below and we'll send you a new password.

* Required Fields

Close window


To upload extension you must be logged in.

* Required Fields

Close window

You are using an outdated browser

We built Magento Connect using the latest techniques and technologies.
This makes Magento Connect faster and easier to use.
Unfortunately, your browser doesn't support those technologies.
Use the links below to download a new browser or upgrade your existing browser.