PHPackages                             setono/sylius-image-optimizer-plugin - 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. [Image &amp; Media](/categories/media)
4. /
5. setono/sylius-image-optimizer-plugin

ActiveSylius-plugin[Image &amp; Media](/categories/media)

setono/sylius-image-optimizer-plugin
====================================

Sylius plugin that optimizes your images

v0.6.3(4y ago)828.7k↓50%2[6 PRs](https://github.com/Setono/SyliusImageOptimizerPlugin/pulls)MITPHPPHP &gt;=7.3

Since Feb 21Pushed 2y ago2 watchersCompare

[ Source](https://github.com/Setono/SyliusImageOptimizerPlugin)[ Packagist](https://packagist.org/packages/setono/sylius-image-optimizer-plugin)[ RSS](/packages/setono-sylius-image-optimizer-plugin/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (39)Versions (20)Used By (0)

Sylius Image Optimizer Plugin
=============================

[](#sylius-image-optimizer-plugin)

[![Latest Version](https://camo.githubusercontent.com/717dc954d058b22d302ec156fb8f910d20bdee79d4c356e78befc4263c59ca68/68747470733a2f2f706f7365722e707567782e6f72672f7365746f6e6f2f73796c6975732d696d6167652d6f7074696d697a65722d706c7567696e2f762f737461626c65)](https://packagist.org/packages/setono/sylius-image-optimizer-plugin)[![Latest Unstable Version](https://camo.githubusercontent.com/d28ec7f4b467c17866939d2e5af4ba77598c5e93971c25460574a5153efb6a93/68747470733a2f2f706f7365722e707567782e6f72672f7365746f6e6f2f73796c6975732d696d6167652d6f7074696d697a65722d706c7567696e2f762f756e737461626c65)](https://packagist.org/packages/setono/sylius-image-optimizer-plugin)[![Software License](https://camo.githubusercontent.com/e65212c93f54e315e4f99994a569cf12650586594737b2715043fcaef2098894/68747470733a2f2f706f7365722e707567782e6f72672f7365746f6e6f2f73796c6975732d696d6167652d6f7074696d697a65722d706c7567696e2f6c6963656e7365)](LICENSE)[![Build Status](https://github.com/Setono/SyliusImageOptimizerPlugin/workflows/build/badge.svg)](https://github.com/Setono/SyliusImageOptimizerPlugin/actions)[![Code Coverage](https://camo.githubusercontent.com/d70ce8c41534d4086994f6c06b9b7d73f2322cdd8abbe1ddb472cb1d048a1cd0/68747470733a2f2f636f6465636f762e696f2f67682f5365746f6e6f2f53796c697573496d6167654f7074696d697a6572506c7567696e2f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/Setono/SyliusImageOptimizerPlugin)

Optimize the images in your Sylius store! Works only with [kraken.io](https://kraken.io) at the moment, but will work with other vendors in the future.

Have you seen this message from Google page speed tools: ["Serve images in next-gen formats"](https://web.dev/uses-webp-images/), this is the plugin to use.

It will **both** optimize your jpegs, but also convert them to webp and serve the webp images to browsers that [support webp](https://developers.google.com/speed/webp/faq#which_web_browsers_natively_support_webp) (i.e. Chrome).

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

[](#installation)

### Step 1: Download the plugin

[](#step-1-download-the-plugin)

```
$ composer require setono/sylius-image-optimizer-plugin
```

This will also install the [Kraken.io Bundle](https://github.com/Setono/KrakenIoBundle) which is need for configuring the API keys.

### Step 2: Enable the plugin

[](#step-2-enable-the-plugin)

Then, enable the plugin by adding it to the list of registered plugins/bundles in the `config/bundles.php` file of your project:

Make sure you add it before `SyliusGridBundle`, otherwise you'll get `You have requested a non-existent parameter "setono_sylius_image_optimizer.model.savings.class".` exception.

```
