bulldogcreative / tinypng

TinyPNG ExpressionEngine Add-on

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TinyPNG ExpressionEngine Add-on

version 3.0.0 supports ExpressionEngine 5.1.3

Visit TinyPNG for more information.

Installation

  1. Sign up for the Developer API and get your API key
  2. Download the zip file
  3. Create the directory tinypng in /system/expressionengine/third_party/
  4. Upload the files into the new directory
  5. Login to ExpressionEngine
  6. Click Developers -> Add-Ons
  7. Click Install on the TinyPNG row
  8. Click Settings on the TinyPNG row
  9. Enter your TingPNG API Key and click Save Settings
  10. You're done

Any image you upload will be made smaller with TinyPNG. Your original file will be stored in a folder called _original. You can still use your original file if you wish.

Example usage

To use the TinyPNG version of the image.

{exp:channel:entries channel="pages" limit="1"}
    <img alt="{title}" src="{image}" />
{/exp:channel:entries}

The tinified version of the image below is 206KB.

TinyPNG version

To use the original image.

{exp:channel:entries channel="pages" limit="1"}
    <img alt="{title}" src="{image:original}" />
{/exp:channel:entries}

The original image is 1.6MB.

Original version

Change Log

Version 3.0.0

February 5th, 2019

  • Added LICENSE.md
  • Checked support for ExpressionEngine 5.1.3

As far as we can tell it works fine with ExpressionEngine 5.1.3. We are going to bump the MAJOR version number like ExpressionEngine did when they re-released ee with a new license.

Version 2.0.0

December 4th, 2017

Added support for ExpressionEngine 4.0.

Version 1.0.3

April 15th, 2015

Bug Fixes:

  • EE was showing an error when uploading a file that already existed.

Version 1.0.2

March 27th, 2015

Bug Fixes:

  • EE was showing the filesize of the original image.

General Changes:

  • Site ID was set to one. It now uses $data["site_id"] to get the site id.

Version 1.0.0

March 24, 2015

Initial release

photo credit

Photo by Levi Bare on Unsplash.

About

TinyPNG ExpressionEngine Add-on

License:MIT License


Languages

Language:PHP 100.0%