bulldogcreative / tinypng

TinyPNG ExpressionEngine Add-on
MIT License
4 stars 1 forks source link
expressionengine images tinypng

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="https://github.com/bulldogcreative/tinypng/raw/main/{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="https://github.com/bulldogcreative/tinypng/raw/main/{image:original}" />
{/exp:channel:entries}

The original image is 1.6MB.

Original version

Change Log

Version 3.0.0

February 5th, 2019

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:

Version 1.0.2

March 27th, 2015

Bug Fixes:

General Changes:

Version 1.0.0

March 24, 2015

Initial release

photo credit

Photo by Levi Bare on Unsplash.