Compress JPEG & PNG images

  • Popularity Score 2649 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.

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

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

Status on hold even though I still have compressions available

Hi, I just installed your extension but after entering my newly created API key I get: "Compression on hold. 500 free images compressed this month" even though if I go to my dashboard it says 0 / 500 compressions available. Is it a bug or something?
Asked by: javiervd
Yes sorry about that, after 5 mins it started working fine.
Answered by: javiervd
Date published: 2016-12-03

Stopped optimizing after 300 images

Hi, I followed instructions exactly as described. When I logged into tinypng I was happy to see the number of images going up pretty quickly. Then the number started to crawl very slowly and it has since stopped at 339 images. I even input my credit card so it would optimize all 2000 images. How should I fix this? Thank you :)
Asked by: AboveSound
Hi AboveSound, When pages in your webshop are viewed, Magento creates cached versions of the images on these pages. The Tinify extension compresses all the images that are added to your image cache. So if you already had a lot of images viewed before, they were already in the cache. This means the Tinify extension doesn't compress these. We recommend you to clear your cache, so that all images are recreated in the cache and so that Tinify extension can compress them. Keep in mind that only the images that are show to users are added to the cache. Also, if you have 2000 images, the number of compressions can go up to 8000 (a compression for each image size).
Answered by: TinyPNG
Date published: 2015-07-07

How do I completely uninstall

Having serious problem. I uninstalled this extension as it was actually making my sste much slower, not just on first visit to prooduct pages but on all subsequent visits. After uninstalling and clearing all caches, catalog pages are broken (footer and sidebar gone, page only loads up to product image grid). Looking at source code, I get this error I never encountered before: <script type="text/javascript"> $j(document).on('product-media-loaded', function() { ConfigurableMediaImages.init('small_image'); <br /> <b>Fatal error</b>: Allowed memory size of 134217728 bytes exhausted (tried to allocate 7200 bytes) in <b>/var/sites/l/lucemill.com/public_html/lib/Varien/Image/Adapter/Gd2.php</b> on line <b>402</b><br /> This must have been caused by your extension, now I have no idea how to revert back to the way things were. Please reply asap as the site is waiting to go live and was just being optimised for speed.
Asked by: webrightnow
Dear webrightnow, We're sorry you are having problems. If you uninstalled the extension and cleared the cache the extension should be removed. But your error message indicates a memory issue. We're not sure whether this is related to the extension. Maybe you can increase the memory limit on your server, or find out why it is using so much memory? Best regards, TinyPNG
Answered by: TinyPNG
Date published: 2016-10-08

The module dont works now?

Helo, i have installed your great module and the API code. Before yesterday, it was working perfectly, but now dont compress the images. My png image at 800x800px compressed from the tinypng website weights 38kbs, but when i add it in the product images, it goes to 2,44 Mb. Im only have compressed 22 / 500 in this month. Is possible that would be a module uncompatility with other module, compillation process,...?
Asked by: danielch
Hi Daniel, That's a bit strange, let's try to find the cause of this! We have not recently updated the Magento plugin. Therefore, it's likely something else in your installation changed, causing this problem. If you recently installed or changed other modules, could you try disabling these and see if they interfere with our plugin? Further, enabling logging might give some more information about the problem. You can enable logging on the "System > Configuration > Developer" page. When enabled, log files will be created in the "var/log/" directory, located in your installation directory. Please, let us know your findings. If some other module interferes, we may be able to improve this in future updates of the plugin.
Answered by: TinyPNG
Date published: 2015-08-15

What is the Pricing after 500 images?

In your description, you say 500 per month to be free. What are the costs involved after 500?
Asked by: vishal_g
Hi there! Excellent question! When you signup for a new account you will automatically be on the free subscription plan. This means that you can compress 500 images per month. If you want to compress more images then you have to upgrade to the flexible subscription plan. You can do this by going to your Dashboard (https://tinypng.com/developers) and entering your billing information. After this the following rates apply: First 500 images per month -> Free Next 9 500 images per month -> $0.009 per image Over 10 000 images per month -> $0.002 per image Once an image is compressed we will not compress it again meaning that it's a one time fee per image. If you need any more information regarding the pricing, let us know!
Answered by: TinyPNG
Date published: 2016-08-29

after install and flush catalog images i got error

Hi, I really need this extension. After install and when i go to chache managment and click flush catalog images cache then i got error please see screenshot http://prntscr.com/7x4dqx please fix this problem thank you
Asked by: ahmedf232
Hi Ahmed, That's a very annoying error! We did not see this error before, do you have more information on your Magento installation (version and other extensions)? Further, could you disable (or uninstall) this extensions and try to flush the cache again to make sure the problem did not exist before? Finally, you can manually delete your cache by deleting the "cache" directory, located in "media/catalog/" (which you will find in your Magento installation directory). This folder should be safe to delete, but I advice to create a backup first, in case you get any errors after deleting it.
Answered by: TinyPNG
Date published: 2015-09-26

Will this also compress images uploaded in the wysiwyg editor?

I'm just wondering if the plugin just compresses catalog images or also includes images uploaded through the wysiwyg editor (cms pages, static blocks, etc)
Asked by: javiervd
Hi Javier, Thanks for your question. The plugin compresses images that are present in the products image cache. Unfortunately, this is not the case with image uploaded through the WYSIWYG editor.
Answered by: TinyPNG
Date published: 2015-10-01

404 error - page can not be found

I get a "404 error - page can not be found" when trying to access the extension.
Asked by: Michaeldalip
Hi Michael, Where exactly do you get this 404? Do you get it when going to System > Configuration > JPG & PNG Compression? Also, which version of our plugin did you install, and for which version of Magento? This information should help us to find out the cause of you getting a 404. Thanks!
Answered by: TinyPNG
Date published: 2016-07-16

404 Error

I have installed your extension (http://connect20.magentocommerce.com/community/Tiny_Compresss_Images) for my magento site running magento version On clicking "Image Optimization" under System --> Configuration I am getting 404 Error. Please help resolve this issue.
Asked by: indianashu
Thank you for contacting us! Have you already logged out and in again of the Admin Panel after installing our extension? If you haven't, please make sure to do so, and follow the instructions on https://www.magentocommerce.com/magento-connect/compress-jpeg-png-images.html
Answered by: TinyPNG
Date published: 2016-08-13

Compatible with M1 Enterprise edition?

Hello, Is this extension compatible with M1 EE? Thank you, Chris
Asked by: dutchllc
Hello Chris, For Magento 1 Enterprise Edition please visit the following download link: https://tig.nl/image-optimization-magento-extension-enterprise-edition/ The Magento extensions have been developed by TIG who specialize in Magento development.
Answered by: TinyPNG
Date published: 2017-01-31
  • y_2017, m_2, d_21, h_1CST
  • bvseo_bulk, prod_bvqa, vn_bulk_0.0
  • cp_1, bvpage1
  • co_hasquestionsanswers, tq_13
  • loc_en_US, sid_27819, prod, sort_[SortEntry(order=LOCALE, direction=DESCENDING), SortEntry(order=FEATURED, direction=DESCENDING), SortEntry(order=NUM_ANSWERS, direction=DESCENDING)]
  • clientName_magento
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

Compress JPEG & PNG Images is rated 3.6 out of 5 by 10.
Rated 1 out of 5 by from Crashed my Site Installed, couldn't log back into Admin after. Disabled in TinyCompress.xml, and tried to uninstall but it didn't work.
Date published: 2017-02-08
Rated 5 out of 5 by from Works Great We installed this extension on a 1.9 CE site with a massive amount of hi-res PNGs. The initial compression roundtrip took quite awhile but once the legacy images were done, we were off to the races. The PNGs, in particular, are much smaller. This is very handy tool in the complex world of frontend performance optimization. Thanks TinyPNG!
Date published: 2016-11-28
Rated 1 out of 5 by from almost double UP on filesize Testing on Magento 1.9.2 Setting to compress only base images. Total images 100+ mixed JPG (mostly)/PNG (a few). Total filesize with plugin: 4.228 MB Total filesize without plugin: 2.422 MB This is almost double up on filesize, and uninstalled immediately. Especially the PNG images grew remarkable in filesize, f.ex. from 163KB to 389KB, and JPG f.ex. from 36KB to 50KB
Date published: 2016-04-11
Rated 5 out of 5 by from Made my images load faster than before! I installed it in one my client's site that has a lot of images and I noticed a huge difference. Images now loads faster as it's all compressed automatically. Thanks for this extension, no need to code anything. Just install and put your API code, and done! Installed it in Magento
Date published: 2016-01-31
Rated 2 out of 5 by from Slow page load on first visit I really like TinyPNG and the idea behind this module but I have found that the first time you visit a product page the time it takes to compress the images and put them in the Magento image cache is very slow, up to 15 seconds. Each subsequent visit to that page is fast but for me that was not a good enough trade off.
Date published: 2015-11-09
Rated 5 out of 5 by from Excelent for pngs Simply the best option to work with transparent png images. Great compression and great image quality. If you use jpg i think it is not necessary.
Date published: 2015-09-29
Rated 5 out of 5 by from Nice extension for stores with transparent product images I used other image optimizer extensions before and they did a fine job but never touched my png files. This extension scrapes a big deal of your png images, and since I use transparent images for most of my templates this really improves loading times. I found out it has a 500 p/m free limit when I flushed my image cache :( but the price per image compression is fair. Installation is pretty easy but haven't tried it combined with cdn or other optimizers yet.
Date published: 2015-06-04
Rated 5 out of 5 by from Works as desbribed! I use the website - tinypng.com - i bought the plug in for Photoshop and now i'm using the extension for Magento, and they all have one thing in common: they work exceptionally well! I use transparent PNGs on my website and when i "save for web" on Photoshop they end up with 650kb. After TinyPNG the same file, without losing quality, becomes a 164kb file. The extension is not free, after 500 compressed images you have to start paying but it's well worth the money, and the counter resets with each month. I only found one problem: in the thumbnails images, the trasparency is gone, and is replaced by white. By default Magento mantains the transparency on thumbnails, so i'm guessing this is a bug on the extension. Other than that is a great extension to speed up your website.
Date published: 2015-05-21
Rated 5 out of 5 by from Great extension We have transparent product images and the extension compresses them brilliantly. I also like that it is very simple, and works immediately when we add new products.
Date published: 2015-05-19
Rated 2 out of 5 by from Good idea but doesn't work properly It looks promising but unfortunately is mixing decreasing KB and increasing KB... :O Some JPG images I've tested: ORIGINAL | COMPRESS 807 KB > 497 KB 73.5 KB < 79.6 KB 24.3 KB < 27.9 KB 274 KB < 321 KB > 108 KB if do it through website 62.3 KB > 24.2 KB 36.1 KB > 13.7 KB 35.5 KB = 35.5 KB 257 KB > 95.8 KB 46.6 KB > 15.7 KB 23.8 KB < 28 KB 6.54 KB < 11.2 KB 57.7 KB > 17.3 KB 137 KB < 221 KB Through the website I compressed my transparent PNG logo from 13.2 KB to 5.42 KB but the crazy PageSpeed Insights still says that there is a margin of 1.5 KB reduction (- 47%). Actually it says that there are some margin of reduction even on the best results the extension generated. I don't know what to say but for sure regarding the Magento extension TinyPNG has to do better. Recommended just to encourage to improve the extension. Almost we shouldn't obtain increased images in KB. :O - Tested on Magento CE without any extension. -
Date published: 2015-05-18
  • y_2017, m_2, d_21, h_4
  • bvseo_bulk, prod_bvrr, vn_bulk_0.0
  • cp_1, bvpage1
  • co_hasreviews, tv_0, tr_10
  • loc_en_US, sid_27819, prod, sort_[SortEntry(order=FEATURED, direction=DESCENDING), SortEntry(order=SUBMISSION_TIME, direction=DESCENDING)]
  • clientName_magento

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.