PHPackages                             way2enjoy/magento2 - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. way2enjoy/magento2

ActiveMagento2-module[API Development](/categories/api)

way2enjoy/magento2
==================

Make your web shop faster by compressing your JPEG and PNG images. This plugin automatically optimizes your images by integrating with the popular image compression services Way2enjoy.

1.1.5(7y ago)011MITPHPPHP &gt;=5.5.0

Since Apr 6Pushed 7y agoCompare

[ Source](https://github.com/way2enjoy2/magento2)[ Packagist](https://packagist.org/packages/way2enjoy/magento2)[ Docs](https://way2enjoy.com/developers)[ RSS](/packages/way2enjoy-magento2/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (5)Versions (2)Used By (0)

[![Build Status](https://camo.githubusercontent.com/ccb3b4a8264f7e6dec38faf6e73f10efb58d5a415a95ba69453297de884d5c91/68747470733a2f2f7472617669732d63692e6f72672f77617932656e6a6f792f6d6167656e746f322d706c7567696e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/way2enjoy/magento2-plugin)

Compress JPEG &amp; PNG images for Magento 2
============================================

[](#compress-jpeg--png-images-for-magento-2)

Make your Magento 2 store faster by compressing your JPEG and PNG images.

This plugin automatically optimizes your images by integrating with the popular image compression services way2enjoy. Learn more about these services on .

***Important notice: The latest release of Magento 2.1.6 includes a completely different way of generating product images in the cache folder. Magento also reports many users with issues in that images are not showing and have posted a notice in their [2.1.6 release notes](http://devdocs.magento.com/guides/v2.1/release-notes/ReleaseNotes2.1.6CE.html#catalog)along with 2 solutions. We regret that the current version 1.1.0 of this extension is also not yet compatible with these extensive changes. For the time being you can solve this by installing the latest dev-master version with the instructions shown at the [bottom of this page](#installing-development-version-of-plugin). Also be warned when flushing the image cache in Magento 2.1.6, you will most likely need to regenerate a lot of missing images in the cache again afterwards with the catalog:images:resize script from Magento. We hope to release the new version of the extension with backwards compatibility soon.***

Do you use Magento 1? Download the extension for [Magento 1 Community Edition](https://www.magentocommerce.com/magento-connect/compress-jpeg-png-images.html)or [Magento 1 Enterprise Edition](https://tig.nl/image-optimization-magento-extension-enterprise-edition/) instead.

How does it work?
-----------------

[](#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. Any image sizes that are exact duplicates of each other will only be compressed once.

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 public media 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!

Screenshot
----------

[](#screenshot)

Example of plugin configuration in Magento 2:

Getting started
---------------

[](#getting-started)

Obtain your free API key from . The first 500 compressions per month are completely free, no strings attached! As each product will be shown in different sizes, between 50 and 100 products can be uploaded to your Magento webshop and compressed for free. You can also change which of types of image sizes should be compressed.

If you’re a heavy user, you can compress additional images for a small additional fee per image by upgrading your account. You can keep track of the amount of compressions in the Magento 2 configuration section.

Installation
------------

[](#installation)

The Magento 2 module can be installed with Composer (). Once the new Magento 2 Marketplace is lauched, it will also be featured there.

From the command line, do the following in your Magento 2 installation directory:

```
composer require way2enjoy/magento2
php bin/magento setup:upgrade

```

Contact us
----------

[](#contact-us)

Got questions or feedback? Let us know! Contact us at .

Information for plugin contributors
-----------------------------------

[](#information-for-plugin-contributors)

### Prerequisites

[](#prerequisites)

- PHP 5.5 or newer.
- MySQL 5.6 or newer (integration tests).
- Composer ().

### Running the unit tests

[](#running-the-unit-tests)

```
composer install
vendor/bin/phpunit

```

### Installing development version of plugin

[](#installing-development-version-of-plugin)

Make sure to set `"minimum-stability": "dev"` in `composer.json` before you start.

```
composer config repositories.way2enjoy vcs https://github.com/way2enjoy/magento2-plugin
composer require way2enjoy/magento2:dev-master
bin/magento setup:upgrade

```

License
-------

[](#license)

This software is licensed under the MIT License. [View the license](LICENSE).

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2594d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/25b2e14ec5f4ea4d2bf22b9a667ab7f812c84a85eca7ba11ac4d324326508c07?d=identicon)[way2enjoy](/maintainers/way2enjoy)

---

Top Contributors

[![way2enjoy2](https://avatars.githubusercontent.com/u/46526479?v=4)](https://github.com/way2enjoy2 "way2enjoy2 (3 commits)")

---

Tags

pluginapimagentocompressimagesmodulemagento2tinypngtinyjpgway2enjoy

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/way2enjoy-magento2/health.svg)

```
[![Health](https://phpackages.com/badges/way2enjoy-magento2/health.svg)](https://phpackages.com/packages/way2enjoy-magento2)
```

###  Alternatives

[tinify/magento2

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

4345.8k](/packages/tinify-magento2)[tinify/tinify

PHP client for the Tinify API. Tinify compresses your images intelligently. Read more at https://tinify.com.

2515.2M71](/packages/tinify-tinify)[shortpixel/shortpixel-php

ShortPixel PHP SDK. Read more at https://shortpixel.com/api-tools

37531.5k10](/packages/shortpixel-shortpixel-php)[imaginaerum/magento2-language-fr-fr

Magento2 French Language Pack (fr\_FR)

41738.1k2](/packages/imaginaerum-magento2-language-fr-fr)[opengento/composer-registration-plugin

This plugin allows to compile the Magento2 components registrations on composer install/update.

111.6k](/packages/opengento-composer-registration-plugin)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
