定制 studiobonito/silverstripe-imagefunctions 二次开发

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

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

studiobonito/silverstripe-imagefunctions

最新稳定版本:3.3.2

Composer 安装命令:

composer require studiobonito/silverstripe-imagefunctions

包简介

Image Functions Module primarily adds more image functions to the Image object but it also adds some useful SiteConfig settings.

README 文档

README

This SilverStripe module is depreciated please consider using the silverstripe-imageextension module instead.

Image Functions Module

Overview

Image Functions Module primarily adds more image functions to the Image object but it also adds some useful SiteConfig settings.

Requirements

SilverStripe 3.0 or newer.

Installation Instructions

Copy the 'imagefunctions' folder to your the root of your SilverStripe installation.

Functions

RationCrop

RatioCrop is an Image function that resizes then crops the image, which we thinks gives the best results when dealing with user uploaded images.

Usage Overview

<% with Image %>
	$RatioCrop(200,300)
<% end_with %>

Placeholder Images

This module also provides the facility to set placeholder images via three DataExtensions (PlaceholderImagePageExtension, PlaceholderImagePerPageExtension, PlaceholderImageSiteConfigExtension).

Usage Overview

$PlaceholderImage

PlaceholderImageSiteConfigExtension (Required)

This is the main extension which adds a PlaceholderImage to the SiteConfig. This extension must be configured in order to use either of the others.

PlaceholderImagePageExtension (Required)

This extension adds methods to access the PlaceholderImage. By default this extension is added to the Page DataObject.

PlaceholderImagePerPageExtension (Optional)

This extension adds a PlaceholderImage to any DataObject. It is designed to be added to DataObjects that act as parents to other DataObjects, thus allowing for localised inheritance of PlaceholderImages.

统计信息

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

GitHub 信息

  • Stars: 8
  • Watchers: 3
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-2-Clause
  • 更新时间: 2013-02-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固