imageapi_optimize.png

Drupal 8+

A Drupal 8+ version of this module is in active development, a relatively stable beta version is available.
The Drupal 8+ version has been completely re-written and no longer provides an image toolkit. Optimizations are now defined as 'pipelines' that can be applied to images in various ways.
The module has built in support for core Image styles and a service allowing use in third party modules.

The module has been split into several other projects for easier maintainability and more modular installing. At least one or more processor module needs to be installed for the optimization to work.

Open Drupal 8 issues | All issues from all subprojects

Drupal 7

This is a toolkit for ImageAPI. It requires imageapi_gd or imageapi_imagemagick or any ImageAPI toolkit to work.

ImageAPI Optimize allows you to use your preferred toolkit and optimize (losslessly) the image when it is saved. Practice for web performance suggests that images should be optimized for better loading time. With this module enabled, Google's Page Speed will always give you an A in image optimize.

This module supports 3rd services (like Yahoo! SmushIt, since 1.5) or many tools if you can compile them on your server. Read the documentation page for a full list of supported tools.

The size reduction varies on the original image, normally between 10-30 KB if image is not optimized before. All optimizations are lossless, but metadata is removed.

This module was featured on Lullabot's Module Monday.

Features

  • Lossless optimization
  • Works with any toolkit (GD or Imagemagick)
  • Pluggable optimization tools

Quick install instruction

- Download imageapi_optimize (and imageapi, if you don't have it yet), enable it.
- Go to ImageAPI settings page (admin/settings/imageapi), select ImageAPI Optimize as the default toolkit instead of GD or Imagemagick
- Go to ImageAPI Optimize settings page, select SmushIt if you haven't other tools compiled.

Despite the name, this module does not depend on ImageAPI. It depends only on the core image.module. Please read the documentation page for more information.

If you prefer Image Magick over GD, please use ImageMagick module instead of ImageAPI (D7).

Project information

Releases