Automatically optimizes all uploaded PNG and JPEG images using tinypng.com's image optimizer.
- Contao 3.2.5 or newer / successfully tested with Contao 4.3.9
- TinyPNG API key
- Create a folder named
tinypng
insystem/modules
- Clone this repository into the new folder
- Obtain an API key and enter it into the System Settings under
Upload settings
Additional step for Contao 4.X:
Open app/AppKernel.php
and add the following line to the $bundles array
new Contao\CoreBundle\HttpKernel\Bundle\ContaoModuleBundle('tinypng', $this->getRootDir())