yii2-extensions/imagine
Composer 安装命令:
composer require yii2-extensions/imagine
包简介
The Imagine integration for the Yii framework.
README 文档
README
Imagine
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --dev --prefer-dist yii2-extensions/imagine
or add
"yii2-extensions/imagine": "dev-main"
to the require-dev section of your composer.json file.
Usage
This extension is a wrapper to the Imagine and also adds the most commonly used image manipulation methods.
The following example shows how to use this extension:
use yii\imagine\Image; // frame, rotate and save an image Image::frame('path/to/image.jpg', 5, '666', 0) ->rotate(-8) ->save('path/to/destination/image.jpg', ['jpeg_quality' => 50]);
Testing
Check the documentation testing to learn about testing.
Our social networks
License
The MIT License. Please see License File for more information.
统计信息
- 总下载量: 9
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: mit
- 更新时间: 2023-10-26