定制 bigfork/silverstripe-webp-formatter 二次开发

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

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

bigfork/silverstripe-webp-formatter

最新稳定版本:1.0.2

Composer 安装命令:

composer require bigfork/silverstripe-webp-formatter

包简介

Adds a .Webp() format option for converting images to webp

README 文档

README

This functionality is now available without a module: https://docs.silverstripe.org/en/5/changelogs/5.3.0/#file-converter

Silverstripe Webp Formatter

Adds a .Webp() function to templates to allow converting images to webp.

This is a module version of this proof of concept by Maxime Rainville.

To use this, your image driver (typically GD or Imagick) must be compiled with support for webp.

Usage

{$Image.Webp.ScaleWidth(150)}

or

{$Image.ScaleWidth(150).Webp}

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2023-03-17