定制 quinninteractive/silverstripe-image-extension 二次开发

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

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

quinninteractive/silverstripe-image-extension

最新稳定版本:3.0.5

Composer 安装命令:

composer require quinninteractive/silverstripe-image-extension

包简介

Adds convenience routines to the Image class

README 文档

README

Note: This extension is for the obsolete Silverstripe 3 and is itself obsolete and unmaintained. It should not be used.

Adds some convenience routines to the Image class.

  • Version 3.x is for SilverStripe 3.2 and above (3.2+). It removes methods that are already built into the Image method of SilverStripe 3.2+ and retains those that are not (eg, Rotate(), TopCroppedResize()).

Upgrade notes for going from QI Image Extension to SS 3.2+ Image:

	CroppedResize() -> Fill()
	CroppedImage() -> Fill()  
	PaddedResize() -> Pad()
	PaddedImage() -> Pad()  
	ResizeByHeight() -> ScaleHeight()  
	ResizeByWidth() -> ScaleWidth()  
	ResizeRatio() -> Fit()  
	Rotate() -> [no replacement; use ImageExtension]  
	SetHeight() -> ScaleHeight()  
	SetSize() -> Pad() 
	SetRatioSize() -> Fit() 
	SetWidth() -> ScaleWidth()  
	TopCroppedResize() ->  [no replacement; use ImageExtension->TopCroppedImage()]  

NOTE: If existing ImageExtension's methods arguments (the width and height) are expressed as a string, will need to replace with SS3.2+ format, e.g.:

MyImage.CroppedResize('200x200') -> MyImage.Fill(200,200)
  • Version 2.x is for SilverStripe 3.1.x.

  • Earlier versions were designed for SilverStripe 2.4. The version supporting SilverStripe 3.x exists only to simplify migrating 2.4 sites to 3.x. All of its functionality exists natively in SilverStripe 3.x. There will be no further development of this module.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-05-27