The TinyPNG on Upload module will send all uploaded PNG's and JPG's to the TinyPNG optimization service using the TinyPNG file api. TinyPNG uses smart lossy compression techniques to reduce the file size of your image files. By selectively decreasing the number of colors in the image, fewer bytes are required to store the data. The effect is nearly invisible but it makes a HUGE difference in file size! By optimizing an image at upload time, all derivative images will already be optimized making for a much lighter image footprint.

Note: we specifically only target declared 'image' field types across the site content fields.

Features

  • Optimize jpg and png images on upload
  • Batch optimize previously uploaded images via cron or manual batch processing

Installation

  • Install the module as normal
  • Obtain an api key from TinyPNG (required).

Future plans

  • Implement processing for files previously uploaded via imce.

Credits

  • CURL function mostly modeled after the imageAPI Optimize TinyPNG service patch
Supporting organizations: 

Project information

  • caution Minimally maintained
    Maintainers monitor issues, but fast responses are not guaranteed.
  • caution Maintenance fixes only
    Considered feature-complete by its maintainers.
  • chart icon44 sites report using this module
  • Created by TheBenji on , updated
  • shieldStable releases for this project are covered by the security advisory policy.
    There are currently no supported stable releases.

Releases