定制 kudja/magento2-webp 二次开发

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

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

kudja/magento2-webp

最新稳定版本:v0.1.2

Composer 安装命令:

composer require kudja/magento2-webp

包简介

Magento 2 WebP image optimizer

README 文档

README

A lightweight Magento 2 module that automatically replaces .jpg and .png images with .webp equivalents in HTML and JSON responses.
Conversion happens in the background, ensuring fast page loads and compatibility with all modern and legacy browsers.

Highlights

  • Seamless Integration: Replaces image URLs in page output using efficient HTML/JSON parsing. No template overrides or theme changes required.
  • Performance-Oriented: Designed to operate with negligible impact on response times, ensuring a seamless user experience.
  • Asynchronous WebP Conversion: Original images are queued for background conversion via cron jobs — no delay for users.
  • Frontend Compatibility: Works with Magento core features like fotorama, swatches, and ajax cart, sections etc.
  • Third-Party Extensions: Designed to work independently, minimizing conflicts with other modules.
  • Browser Support: Automatically serves original images to browsers lacking WebP support via a JavaScript fallback.

Installation

composer require kudja/magento2-webp
bin/magento module:enable Kudja_Webp
bin/magento setup:upgrade

Install cwebp

Ubuntu/Debian:

sudo apt install webp

统计信息

  • 总下载量: 27
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

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