Oro Image Size Optimization (for 3.1 LTS & 4.1 LTS)

Oro Team
Supports versions: 3.1.0 LTS, 4.1.0 LTS

Short Overview

Oro Image Size Optimization extension enables an administrator to control the quality of images using the UI, thereby reducing the size of images in storage.

Image Optimization Bundle enables an administrator to control the quality of images using the UI, thereby reducing the size of images in storage.

Configure Processors


OroImageOptimizationBundle supports the following libraries:

  • pngquant – utility for lossy compression of PNG images.
  • jpegoptim – utility to optimize/compress JPEG files.

For proper work, you need libraries whose versions correspond to the following:

  • pngquant >= 2.5.0
  • jpegoptim >= 1.4.0

Configuration for Setup

To configure the package you need to add the following options to the parameters.yml:

liip_imagine.pngquant.binary: /usr/bin/pngquant
liip_imagine.jpegoptim.binary: /usr/bin/jpegoptim

  • Processors are external libraries, so they need to be installed separately.
  • If the configuration specifies the incorrect paths to the libraries, their versions do not match or libraries are not installed, the system will work without image processing, and these settings will not be available and will not be displayed in the system configuration.
  • If the configuration is not specified explicitly, the system will try to find libraries automatically and will log errors if the library is not found.

UI Configuration

  • JPEG Resize Quality (%) – values from 30 to 100, the higher the value, the better the image quality.
  • PNG Resize Quality (%) – ‘Preserve quality’ and ‘Minimize file size’. Indicates how much you want to reduce the image quality.


Image Size Optimization is available as product feature starting from 4.2 LTS



OroCommerce Community Edition

  • 4.1.0 LTS
  • 3.1.0 LTS
to submit a support request

Oro Extensions store is our new technology and innovation hub connecting online merchants looking to extend functionalities of Oro business applications and developers willing to market solutions compatible with Oro products. The Extensions store allows Oro applications’ users to browse and instantly download cost-efficient connectors and integrations helping them make the most out of their OroCRM and OroCommerce deployments. The Extensions store lists free, paid, and quote-based extensions developed either by the Oro team or the Oro community. The offering includes extensions for management of leads and opportunities; tools for sales and marketing; integrations for payment processing, shipment, accounting, and invoicing; solutions for customer support, and much more. Oro Extensions store is always open to modules extending on the capabilities of Oro products. Join Oro’s vibrant ecosystem and leverage the multiple benefits this will bring. External developers contributing to the growing Oro Extensions store capture new customers for their products and services, and market their solutions on our site at no cost.

Click to show information

Back to top