kudja/openmage-tinify

OpenMage (Magento 1) WebP Converter / Image Optimizer

Installs: 18

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

Type:magento-module

v0.2.0 2025-05-19 20:30 UTC

This package is auto-updated.

Last update: 2025-06-20 08:00:09 UTC


README

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.