https://github.com/appleple/acms-tiny-png/raw/master/build/TinyPNG.zip
TinyPNGのAPIを利用して、画像のロスレス圧縮を実現できます。Hook機能を使って画像生成時に、すべてロスレス圧縮します。
また校正オプションを用意していて、ロスレス圧縮された状態で画像のリサイズをすることができます。
https://tinypng.com/ でアカウントを作成し、API Key を発行ください。発行した API Key を private/config.system.yaml に追記します。
tiny_png_api_key: xxxxxxxxxxxxxxxxxxxxxxxxxxx
resizeTinyPng(type, width, height)
- scale
- fit
- cover
- thumb
<img src="{path}[resizeTinyPng('scale', 600)]">