Skip to content

kudja/openmage-tinify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebP Image Optimizer for OpenMage (Magento 1)

A lightweight module for OpenMage / Magento 1 that replaces .jpg and .png images with .webp.

Magento 2 version available at https://github.com/kudja/magento2-webp

Features

  • Supports both HTML and JSON responses (e.g. AJAX, product data, etc.)
  • Converts on-demand: new image paths are queued and processed via cron
  • Lightweight output rewriting with minimal performance impact
  • Compatible with FPC, custom themes and extensions
  • JS fallback for browsers without WebP support (WebP support chart)
  • Conversion modes:
    • Local conversion using cwebp
    • Tinify (tinypng.com) API

Installation

Composer (recommended)

composer require kudja/openmage-tinify

From git

composer config repositories.openmage-tinify vcs https://github.com/kudja/openmage-tinify.git
composer require kudja/openmage-tinify

Via modman

modman clone https://github.com/kudja/openmage-tinify.git

Manual way:

Download zip and extract src folder to the magento root.

Dependencies

For local conversion you need to install cwebp binary. You can use apt-get or brew to install it.

Ubuntu/Debian

sudo apt install webp

If you are using tinify api you need to install tinify library.

composer require tinify/tinify

Configuration

In Magento admin go to System > Configuration > Kudja > Tinify (WebP) section.

About

OpenMage (Magento 1) WebP Converter / Image Optimizer

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published