teamsisu/contao-greyify
最新稳定版本:0.0.4
Composer 安装命令:
composer require teamsisu/contao-greyify
包简介
An contao extension that provides a small class to greyscale images with PHP or inserttag
README 文档
README
An contao extension that provides a small class to greyscale images with PHP or inserttag
How to use:
inserttag
Default:
{{greyify::imagePath/UUID?width=x&height=x&mode=x}} // returns an image tag with figure container
SRC:
{{greyify::src::imagePath/UUID?width=x&height=x&mode=x}} // returns only the file path
TAG:
{{greyify::tag::imagePath/UUID?width=x&height=x&mode=x}} // returns an image tag
FIGURE:
{{greyify::figure::imagePath/UUID?width=x&height=x&mode=x}} // returns an image tag with figure container
php
$image = Greyify::convert(imagePath/UUID?width=x&height=x&mode=x); // returns only the path of the image $image = Greyify::getHTML(imagePath/UUID?width=x&height=x&mode=x); // returns an image tag $image = Greyify::getHTML(imagePath/UUID?width=x&height=x&mode=x, true); // returns an image tag with figure container
For the getHTML method there is as third parameter the "alt" value available The parameters width/height/mode are optional for both inserttag and php
Additional note
This module is provided "as is", without warranty of any kind. It is still under development if you find any issues please use the github issue tracker.
统计信息
- 总下载量: 15
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: LGPL-3.0
- 更新时间: 2015-01-07