Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/numero2/contao-tinypng
Automatically optimizes all uploaded PNG and JPEG images using tinypng.com's image optimizer.
https://github.com/numero2/contao-tinypng
contao4
Last synced: 23 days ago
JSON representation
Automatically optimizes all uploaded PNG and JPEG images using tinypng.com's image optimizer.
- Host: GitHub
- URL: https://github.com/numero2/contao-tinypng
- Owner: numero2
- Created: 2014-09-03T10:05:10.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-06-08T10:28:37.000Z (over 7 years ago)
- Last Synced: 2024-10-27T01:41:24.932Z (2 months ago)
- Topics: contao4
- Language: PHP
- Homepage:
- Size: 9.77 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Contao TinyPNG
=======================[![](https://img.shields.io/badge/Contao%204-compatible-orange.svg?style=flat-square&logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iRWJlbmVfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSIxNHB4IiBoZWlnaHQ9IjEyLjIzcHgiIHZpZXdCb3g9IjI0LjExNiAyMS4wNDMgMTQgMTIuMjMiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMjQuMTE2IDIxLjA0MyAxNCAxMi4yMyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI%2BPHBhdGggZmls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LTAuNDExLDAuOTI2LTAuOTIxVjIxLjk2OEMzOC4xMTYsMjEuNDU2LDM3LjcwMSwyMS4wNDMsMzcuMTksMjEuMDQzeiIvPjwvc3ZnPg%3D%3D)](https://contao.org/) [![](https://img.shields.io/packagist/v/numero2/contao-tinypng.svg?style=flat-square)](https://packagist.org/packages/numero2/contao-tinypng) [![](https://img.shields.io/badge/License-LGPL%20v3-blue.svg?style=flat-square)](http://www.gnu.org/licenses/lgpl-3.0)
About
--
Automatically optimizes all uploaded PNG and JPEG images using [tinypng.com](https://tinypng.com)'s image optimizer.System requirements
--* [Contao](https://github.com/contao/core) 3.2.5 or newer / successfully tested with Contao 4.3.9
* [TinyPNG API key](https://tinypng.com/developers)Installation & Configuration
--* Create a folder named `tinypng` in `system/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
```php
new Contao\CoreBundle\HttpKernel\Bundle\ContaoModuleBundle('tinypng', $this->getRootDir())
```