kudja/openmage-tinify
最新稳定版本:v0.2.0
Composer 安装命令:
composer require kudja/openmage-tinify
包简介
OpenMage (Magento 1) WebP Converter / Image Optimizer
README 文档
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
- Local conversion using
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.
统计信息
- 总下载量: 27
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: OSL-3.0
- 更新时间: 2025-05-04