jaysalvat/image2css
最新稳定版本:1.0.2
Composer 安装命令:
composer require jaysalvat/image2css
包简介
Pointless Image To CSS box-shadow Converter
关键字:
README 文档
README
You suck at CSS but want to impress your friends anyway? This PHP class converts an image to thousands of CSS lines of box-shadow properties. It's totally pointless... but life is pointless...
Demo:
You can see a demonstration on CodePen.io.
http://codepen.io/jaysalvat/pen/HaqBf
Installation:
Create a composer.json file with:
{
"require": {
"jaysalvat/image2css": "~1.0"
}
}
And run Composer to install Image2Css.
$ curl -sS https://getcomposer.org/installer | php
$ composer.phar install
Example:
$img = new \Image2Css\Converter("monalisa.jpg");
$img->setWidth(200);
$img->setPixelSize(4);
$img->setBlur(4);
echo $img->computeStyle();
Note:
GD extension required.
统计信息
- 总下载量: 1.53k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 715
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-07-18