Providers can be set up by navigating to Admin Control Panel → Content → Image optimizer → Providers.

The following providers are supported with this add-on:

  • Pngquant
  • Jpegoptim
  • Kraken.io
  • reSmush.it
  • Gifsicle

To configure a provider, click the “Configure” link next to the provider you would like to configure.

Options for Configuring Pngquant

Priority - This option allows you to choose the order in which providers are attempted. Providers with a lower value will execute first.

Supported image types - Allow image/png image types to be supported or not supported during optimization.

Options - Choose to make the provider active or inactive.

Binary path - The path to the binary for this provider. If it is in your $PATH you may be able to leave this value as default. If you’re unsure of what this value should be your host or sysadmin should be able to provide more information.

The following options are passed to the pngquant binary. You can find details on each of these options here.

Minimum quality - The minimum quality of the image (Value from 1-100).

Maximum quality - The maximum quality of the image (Value from 1-100).

Speed - The speed of the optimization. 1 is faster but will not reduce the filesize as much, while 10 will be much slower and have a greater reduction in file size.

Options for Configuring Jpegoptim

Priority - This option allows you to choose the order in which providers are attempted. Providers with a lower value will execute first.

Supported image types - Allow image/jpeg image types to be supported or not supported during optimization.

Options - Choose to make the provider active or inactive.

Binary path - The path to the binary for this provider. If it is in your $PATH you may be able to leave this value as default. If you’re unsure of what this value should be your host or sysadmin should be able to provide more information.

Maximum quality - The maximum quality of the image (Value from 1-100).

Strip EXIF data - Choose if you want to remove EXIF metadata.

Strip IPTC data - Choose if you want to remove IPTC metadata.

Options for Configuring Kraken.io

Priority - This option allows you to choose the order in which providers are attempted. Providers with a lower value will execute first.

Supported image types - Allow gif, jpeg, and png based images to be supported or not supported during optimization.

Options - Choose to make the provider active or inactive.

API Key - Enter Kraken.io API key.

API Secret - Enter Kraken.io API Secret.

Optimize type - Choose an optimization type.

  • Lossless - The image will remain the same but the file size will not be as small as if Lossy was chosen. To learn more please click here.
  • Lossy - The file size will be smaller than if Lossless was chosen but may change the image. To learn more please click here.

Preserve metadata - Choose if you would like any of the metadata to be preserved. To learn more please click here.

Options for Configuring reSmush.it

Priority - This option allows you to choose the order in which providers are attempted. Providers with a lower value will execute first.

Supported image types - Allow multiple types of image types which include gif, jpeg, png, and bmp based images.

Options - Choose to make the provider active or inactive.

Preserve EXIF - Choose if you want to preserve EXIF metadata.

Options for Configuring Gifsicle

Priority - This option allows you to choose the order in which providers are attempted. Providers with a lower value will execute first.

Supported image types - Allow multiple types of image types which include gif, jpeg, png, and bmp based images.

Options - Choose to make the provider active or inactive.

Binary path - The path to the binary for this provider. If it is in your $PATH you may be able to leave this value as default. If you're unsure of what this value should be your host or sysadmin should be able to provide more information.

The following options are passed to the gifsicle binary. You can find details on each of these options here.

Lossiness - The quality loss threshold of the conversion. Higher value means less quality at the expense of better preserved space.

Optimization mode - This setting allows you to choose three modes which determine how much optimization is done. For more information on this you can find more details here.

O1 - Stores only the changed portion of each image. This is the default.

O2 - Also uses transparency to shrink the file further.

O3 - Try several optimization methods which are usually slower but sometimes give better results.

Did this answer your question?