Welcome to PotatoCommerce - Magento Extensions Store

Image Optimizer for Magento 2


Optimize images on your Magento 2 store automatically. Image Optimizer Magento 2 extension is an essential solution that compresses images and photos on your store.

  • Free installation and Free LIFETIME support!
  • Automatic backup of images
  • Decreases filesize of JPG, PNG and GIF images
  • Compatible with all officially supported web-servers
  • Compatible with CDN

Image Optimizer for Magento 2

6 screenshots: click to zoom
  • Compress JPG, PNG and GIF images automatically
  • The only TRUSTWORTHY extension for Magento 2
  • Track the image optimization progress
  • Change image compression level
  • Select image optimization method
  • View log and change image status

Regular Price: $149.00

Special Price $99.00

* Required Fields

Regular Price: $149.00

Special Price $99.00

  • 60-day money-back period
  • free updates
  • free bugfixes
  • free technical support

The most trustworthy Magento 2 extension for image optimization

Images bring life to your store and make it eye-catching for customers. They immediately capture visitors’ attention – even before they’ve read a word of a text.

According to the HTTPArchive study, two thirds of page size are images. Optimized images have smaller file sizes. The smaller image size is the faster a browser will load a page with this image.

As per Google PageSpeed Insights recommendations, many things should be fixed to make your website faster, such as optimization of HTML, Javascript and CSS files. On the other hand, optimization of images gives the most significant increase in the performance.

Image Optimizer for Magento 2

The Solution - Image Optimizer Magento 2 extension


Welcome our image optimization extension for Magento 2! Image Optimizer compresses images of JPG, PNG and GIF types automatically. The solution can be used on any web-server and OS, and even on a shared hosting.

Image Optimizer extension features

Optimize JPG, PNG and GIF images

Magento 2 Image Optimizer allows you to compress all image files of JPG, PNG and GIF types. The size of the image files will be dramatically reduced, which will lead to a faster web page loading.

Run image optimization by cron or run manually

In most of the cases image optimization by cron is a perfect choice — you don't need to worry about the process — Image Optimizer will periodically search for unoptimized images and add them to the optimization queue. Just install the extension and forget about image optimization forever. Nevetheless, image compression can be run manually by a console command if necessary.

Optimize images with custom quality

Lossless image compression

- with no image quality loss. Such optimization can make files 5-25% smaller. This compression is reached by removing excess file information without modifying any image pixel. Lossless image optimization will be a perfect choice for those websites which pay a lot of attention to quality of product photos.

Lossy image compression

- select your image quality to reach a better level of image optimization.The larger compression is, the smaller file will be. As a result, outputted files can become about 8 times smaller! We recommend use 85% image compression level which guarantees a significant performance improvement without visible image quality loss.

Create a backup of images

It's always wise to have a backup. Image Optimizer Magento 2 extension makes a backup automatically. In addition, you can roll-back any image if necessary.

Image compression log

Track image compression progress in the log. The result of each image optimization can be viewed in the data grid in Admin Panel. Moreover, this log comes with filters and sorting so you can quicky find any image.

Compatible with CDN

Image Optimization extension for Magento 2 does not work directly with CDN services. However, this extnesion can work with CDN services. The extension optimizes image on a local webserver, and then CDN caches images from this webserver. Thus, you just need to Flush CDN Cache (or upload images to CDN manually if your CDN does not support automatic synchronization).

Are you using Amazon CDN services? If so, you may be interested in automatic synchronization between Magento 2 and Amazon S3 or Amazon Cloudfront services.

Can work on shared hosting

Some store owners' hands are tied up by restrictions on shared hosting which not allow installing server applications. We took care of customers with shared hosting - Image Optimizer can work via PotatoCommerce Cloud Service so all images will be optimized on our servers.


The price of the extension license is $149 for Magento 2 Community Edition, and $398 for Magento 2 Enterprise Edition. Price does not depend on chosen hosting option (self-hosted applications or PotatoCommerce Cloud Service). Usage of PotatoCommerce Cloud Service is free. Single license allows using the extension on single Magento 2 installation. Click here to read the End User License Agreement.

Improve Google Pagespeed score

Image Optimization Magento 2 extension is fully compatible with Performance Optimization Tool which significantly reduces the size of JS, CSS and HTML content and reduces a number of client-server requests. This helps to get highest scores in Google Pagespeed and GTmetrix servies.

Image Optimization Methods

Image Optimizer can work via self-hosted server applications OR via PotatoCommerce Cloud Service

Self-hosted applications

Optimization is performed on your server - This option is the best choice if you have robust hardware or specific environment. To optimize images on self-hosted server you need to install additional server applications. You will be ably to utilize non-default applications and specify custom optimization parameters. Generally, this option is for those who want to control and modify all the details of the setup.

PotatoCommerce Cloud Service

Optimization is performed on PotatoCommerce Cloud Server - Our extension can use PotatoCommerce Cloud Server to optimize images. You won’t have to manage the technical complexity of installing additional libraries themselves, which are often not allowed on shared server hosting or specific web-server environments. Cloud is also a better choice if your server is not very fast. Usually, it’s the best option for stores who want to get things done quickly.

PotatoCommerce is GTmetrix official partner
for Magento performance optimization.
Learn More →

Questions and Answers

Do you provide installation service?

Yes. We can install the extension and check if everything is working properly free of charge.

What is support policy?

PotatoCommerce provides free technical support for ALL paid products. Please contact us in case of any issues and we will solve all issues within a couple of days.

What happens if the extension does not meet my needs?

We provide 30 days money back guarantee from the moment of purchasing the license. Please note, a refund is issued only for the extension license and extra purchased unused traffic. Payment for used traffic and installation of server applications are not refundable. However, we may proceed with partial refund of unused paid traffic - it is rounded to 100Mb.

Why should I make website faster?

Websites should be as fast as possible. Every SEO-specialist knows that Google can apply a SERP penalty to slow websites. And every merchant should know that users leave slow websites and instead prefer the fast ones.
Thus, if you want to improve search engine ranking, you need to optimize images on your website.

Can I try Magento 2 Image Optimizer extension for free?

We offer 30-day money back guarantee, so you can request a refund if it does not meet your expectations. You can also check the extension demo to explore the extension features.

What payment options do you accept?

We accept Visa and MasterCard only. Secure checkout is powered by 256-bit encryption and provided by RapidSSL.

Which web-servers and operating systems are supported?

Same as officially supported by your Magento 2 version. (Magento 2 system requirements)

Why choose PotatoCommerce headline
Why choose Potatocommerce left
Why choose Potatocommerce right
6 Reviews

Average rating

Great product

Posted by Jay on Jul 4, 2018
Thank you so much for installing this beautiful product for me, as a user of magento 1 and magento 2, "www.inkerr.com" team is happy to get your product.

Best Team

Posted by Jay on Jul 4, 2018
Dear, i do not know what to say, but actually you guys are so good, so helpful. You even do not take problems as a pain, you treat customers so good.

That is why, your product is so Good toooo...

Great optimization & terrific support

Posted by Denver on Apr 2, 2018
Image Optimizer does everything it promises. After installing it on an image-heavy site, we saw dramatic reductions in file sizes, even many that had been optimized previously. Support has been excellent and very responsive when needed-- responses and solutions usually within 24 hours.

Image Optimizer helped reduce our bandwidth

Posted by Edward on Mar 27, 2018
We have a lot of items on our website, with a lot of images. This extension reduced our bandwidth a lot. It took about a week for all the images to optimize once the extension was installed. Their support was top notch. Thank you!


Posted by Nick Afanasyev on Dec 8, 2017
I was using another free extension, and had many issues. Then I switched to this one, and really happy with the result and features. Keep up great work, guys!

Write Your Own Review

Only registered users can write reviews. Please, log in or register



Magento CE2.1.x, 2.2.x, 2.3.x, 2.4.x
Magento EE2.1.x, 2.2.x, 2.3.x, 2.4.x
Compatible BrowsersChrome, Safari, Firefox, Opera, IE8+

Installation Steps

IMPORTANT! Since 1.2.0 version of the product, installation steps have been changed. Please remember to run all required commands during installation or upgrade of this Magento 2 extension.

  1. Download the extension from the account on our store
  2. Extract the folder and copy it to the root directory of Magento 2 store
  3. Specify the path in the command line:
    php <path to Magento 2 dir>/bin/magento setup:upgrade
  4. If you use Magento 2.1.х, then it is required to restart Magento compile command by using:
    php <path to Magento 2 dir>/bin/magento setup:static-content:deploy
  5. Specify 777 permissions (if required) to var, pub folders which should be readable:
    chmod -R 777 <path to Magento 2>/var
    chmod -R 777 <path to Magento 2>/pub
  6. Make sure cron is installed and configured correctly. Cron setup guide can be found here.
  7. Make sure that exec function is allowed.
  8. If you use the Self-Hosted mode, then you also need to install additional applications which are used by Image Optimizer extension to optimize images of JPG, PNG and GIF file types.
  9. That's it! Enjoy!

Installation of additional applications

Jpegoptim is used to optimize images of JP(E)G file type. Install it with the commands:
wget http://www.kokkonen.net/tjko/src/jpegoptim-1.4.4.tar.gz
tar -xvzf jpegoptim-1.4.4
cd jpegoptim-1.4.4
./configure && make && make install

Optipng is used to optimize images of PNG file type. Install it with the commands:
wget http://prdownloads.sourceforge.net/optipng/optipng-0.7.6.tar.gz
tar -xvzf optipng-0.7.6.tar.gz
cd optipng-0.7.6
./configure && make && make install

Gifsicle is used to optimize images of GIF file type. Install it with the commands:
wget https://www.lcdf.org/gifsicle/gifsicle-1.88.tar.gz
tar -xvzf gifsicle-1.88.tar.gz
cd gifsicle-1.88
./configure && make && make install

PngQuant is used to optimize images of PNG file type. Install it with the commands:
git clone --recursive https://github.com/pornel/pngquant.git
cd pngquant
sudo make install
(You will need libpng installed)
You can find more info here.

Installation/update of additional libraries may be required.

How to use custom settings?

If you’d like to use custom optimization options, it is required to create a file:


And perform the following structure in it:

        {path to library on the server}
        {custom options}
        {path to library on the server}
        {custom options}
        {path to library on the server}
        {custom options}

If the file is created without the structure, the extension will work with default settings.

Jpegoptim usage manual
Optipng usage manual
Gifsicle usage manual


How does the image optimization work?

The extension optimizes images automatically via cron. Please make sure, cron is installed and set up properly on your store (cron setup guide). If you use self-hosted mode, gif, jpeg и png will be optimized if all optimization utilities are installed correctly. The Image Quality option allows specifying a needed quality rate for optimization in the settings. More detailed tips on the settings can be found in How to use custom settings article.

If you use potato cloud service mode, the files of gif, jpeg и png types will be optimized. The Image Quality option allows specifying needed quality rate for optimization in the settings. More detailed tips on the settings can be found in How to use custom settings article.
If the service is used, your task will be added to the service queue and get the Transferred to the service status and it may take some time for images to be optimized. You can view the status of your task on the Processed Images page.

Images can be optimized manually from the following directories and sub-directories:

  • /pub/media/
  • /app/code/
  • copies from /pub/static will be optimized as well.


How much time will the optimization process take?

It depends on the quantity of images. The cronjob is running each 2 minutes and process 25 images per iteration, approximately 720 images per hour. E.g. if you have got 10000 images on your site, it will require roughly 14 hours for optimization to be completed.


Does Image Optimizer load the server?

You can see slight extra load on one of the processor cores. However, to avoid any possible issues on a live store, image optimization process can be handled on a staging site on a standalone server. Then you can replace all images on a live store with the optimized ones.


How can I check whether the extension is actually working?

Information about all processed images is stored into potato_image_optimization_image database table. Also, it can be seen in the Processed Images grid which is located at Magento Admin > System > Image Optimizer > Processed Images.
We recommend making a performance report before and after optimization of the following pages: home page, product page and category page. We recommend using GTMetrix free service for this purpose; as for Google PageSpeed service, please keep in mind that it recommends optimizing images with quality loss. The result can be checked if you compare the reports before and after optimization (Optimize Images parameter only). Please keep in mind that Image Optimizer Magento 2 extension optimizes only the Optimize Images indicator (and therefore overall metrics such as Total Page Size and Fully Loaded Time), it does not improve other report indicators.


Image optimization process does not start. What can I do?

We suppose this may happen because of the next reasons.

  • Incorrect permissions of ‘pub’ and ‘var’ folders. You can set proper permissions using the commands:
    chmod -R 777 <path to Magento 2>/var
    chmod -R 777 <path to Magento 2>/pub
  • Cron is not configured properly. Please have a look at the cron setup guide.
  • Applications are not installed correctly. To check this run the following commands:
    ./optipng -v
    ./jpegoptim --version
    ./gifsicle --version
    See “Installation of additional applications” section the reference.
  • exec function is not allowed.
  • Image Optimizer extension is outdated. The latest version of the extension can be found in customer account on our website.

If issues still persist, then please contact us. We will do our best to solve any issues with Image Optimizer extension for Magento 2.



1.5.0 Released on 23 January 2020
+ New design
+ Optimization utilities added to installation package
* bugfixes

1.4.1 Released on 29 January 2019
* Small bugfixes

1.4.0 Released on 17 November 2018
+ Image optimization speed was imporoved
+ Now you can include/exclude directories for optimization
+ Now you can add custom path to optiomization library
* bugfixes

1.3.2 Released on 13 June 2018
* Bug fixes

1.3.1 Released on 27 March 2018
+ Compatibility of console commands with optimization via Potato Server
+ Progress bar for console run
+ Check db records via console scan
+ Improved memory usage for scanning
* Default port for server changed to 80
* Fixed an issue with incorrect paths after scanning

1.3.0 Released on 09 February 2018
+ Image file Scanner improved
+ Start scan manually from admin panel
+ Start scan manually via console command
* bug fixes

1.2.1 Released on 11 November 2017
* Fixed a bug with Pngquant

1.2.0 Released on 26 October 2017
+ Pngquant added
+ Stability and speed improved

1.1.4 Released on 30 August 2017
* Bugfixes

1.1.3 Released on 18 August 2017
* Bugfixes

1.1.2 Released on 26 June 2017
* Bugfixes

1.1.1 Released on 05 June 2017
* Bugfixes

1.1.0 Released on 23 May 2017
+ Statistics and progress bar was added to the extension settings
+ Added descriptions and possible solutions for errors
* Roll-back an image if the new file size isn't lower than the original one
* Bug fixes

1.0.0 Released on 18 April 2017
Initial Release