定制 kudja/openmage-tinify 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

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

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: OSL-3.0
  • 更新时间: 2025-05-04