axllent/silverstripe-image-optimiser 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

axllent/silverstripe-image-optimiser

Composer 安装命令:

composer require axllent/silverstripe-image-optimiser

包简介

Automatically optimise all uploaded & resampled images in Silverstripe

README 文档

README

A module to automatically optimise/compress uploaded as well as any resampled (cropped, scaled etc) images in Silverstripe. Images (JPG, PNG & GIF) are automatically optimised, provided you have the correct binaries installed (see "Installation" below).

The module overrides the default FlysystemAssetStore to and transparently optimises the image before adding the image to the store.

Requirements

  • silverstripe/framework ^4.0 || ^5.0 || ^6.0
  • silverstripe/assets ^1.10 || ^2.0 || ^3.0
  • spatie/image-optimizer - automatically installed
  • JpegOptim, Optipng, Pngquant 2 & Gifsicle binaries (see below)

Optimisation tools

The module uses spatie/image-optimizer and will use the following optimisers if they are both present and in your default path on your system:

Installation

composer require axllent/silverstripe-image-optimiser

Installing the utilities on Ubuntu:

sudo apt-get install jpegoptim optipng pngquant gifsicle

Installing the utilities on Alpine Linux:

apk add jpegoptim optipng pngquant gifsicle

Usage

Assuming you have the necessary binaries installed, it should "just work" with the default settings once you have flushed your Silverstripe installation.

For custom optimisation settings, please refer to the Configuration documentation.

统计信息

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

GitHub 信息

  • Stars: 11
  • Watchers: 2
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-03-22

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固