gurucomkz/watermark
最新稳定版本:1.0.3
Composer 安装命令:
composer require gurucomkz/watermark
包简介
Watermarking the images upon output in SilverStripe
README 文档
README
Adds image watermarking to the list of available command for image manipulation in SilverStripe 4.
Requirements
SilverStripe ~4
Installation
composer require gurucomkz/watermark
Run dev/build, go to Backend Settings and configure the "Watermarking" tab.
Usage
Module makes Watermark() function available when manipulating images. By default it sets the watermark's position as set in CMS Admin, but that can be overriden by supplying a parameter with the position, i.e. $Image.Watermark('BottomLeft')
Examples
$Image.Watermark() //just add a watermark
$Image.Watermark().Fill(300,300) //cut image after watermarking - watermark may be cut
$Image.Watermark('TopLeft').Watermark('BottomRight') //put 2 watermarks
$Image.Fill(300,300).Watermark() //first cut, then put a watermark
$Image.FocusFill(300,300).Watermark() //works with jonom/focuspoint as well
To Do
- i18n capability
统计信息
- 总下载量: 763
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-06-22