cent4auka/rtimage
Composer 安装命令:
composer require cent4auka/rtimage
包简介
Resize tool image
README 文档
README
Resize tool image
Installing via Composer
If you do not already have Composer installed, you may do so by following the instructions at getcomposer.org. On Linux you'll run the following commands:
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
Please refer to the Composer Documentation if you encounter any problems or want to learn more about Composer usage.
If you had Composer already installed before, make sure you use an up to date version. You can update Composer
by running composer self-update.
With Composer installed, you can install Yii by running the following commands under a Web-accessible folder:
composer require "cent4auka/rtimage:~1.0"
Usage
$image = new \ResizeTool\Image($filePath); $image->resize(100, 100); $image->save(); // or $image = new \ResizeTool\Image($originFilePath); $image->resize(100, 100) ->save($resultFilePath);
Methods
$image = new \ResizeTool\Image($filePath); // methods of image: $image->setBackgroudColor(0xFFFFFF) $image->resize(100, 100); $image->crop(400, 0, 300, 300) $image->cropCenter(300, 300) $image->save();
统计信息
- 总下载量: 10
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-01-13