This module is created to be simplest solution for TinyPNG processing in Drupal 7. One of the most important things about this module is that it keeps original files untouched dealing nicely with image styles and provides TinyPNG processing where is really required by you styles. You can save your money and apply TinyPNG optimisation only where it required.

As additional feature - you can always track what file was processed and how it was reduced using watchdog.

Features

  • TinyPNG integration on image styles level.
  • Storage for optimised images, making safe changes to images styles and saving you money.
  • Keeping you original images as is.
  • Local cache storage for optimised images. So, even after image cache clear you will have you optimized images without touching TinyPNG service.

Comparing with others TinyPNG modules

  • Tinypng on upload replaces all files on upload and that's not useful in most cases, especially when you need originals files to be kept and you try to save money.
  • Tinypng is alternative site-wide image toolkit with fallback to GD/ImageMagick that process all your jpeg/png images.

Installation

  • Enable module and provide your TinyPNG API key in Administration » Configuration » Media » TinyPNG Settings
  • Configure your image styles adding "TinyPNG optimisation" where it required.

Notices

  • Keep in mind, that TinyPNG is paid service when you reach 500 images per month rate.
  • Image will be generated once until you change preset or reset image cache.

Future plans

  • Store optimised images locally until they really changed, so even image style change will be changed or image cache will be reset - no processing will be done with TinyPNG service.
  • Provide centralised statistics for generation and option to reset stored locally optimised images.
Supporting organizations: 

Project information

Releases