TinyPNG On Upload
Component ID
2460295
Component name
TinyPNG On Upload
Component type
module
Maintenance status
Development status
Component security advisory coverage
covered
Downloads
1010
Component created
Component changed
Component body
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
