newfrontiers/images
Composer 安装命令:
composer require newfrontiers/images
包简介
Simple image modification library
关键字:
README 文档
README
Install
Via Composer
$ composer require newfrontiers-images
Usage
Load images from a file or an existing resource. Note: Resources are closed upon destruction of the object.
$image = Image::fromFile($myImageFile); $image = Image::fromResource($myImageResource);
Simple image manipulation functions like brightness and contrast are applied to the loaded image directly. More complex manipulations like rotation and cropping return a new Image instance leaving the original image untouched.
$originalImage = Image::fromFile('original.jpg'); $croppedImage = $originalImage->cropSquare(200); $croppedImage->saveToFile('cropped.jpg');
License
All rights reserved. You are NOT allowed to use this!
统计信息
- 总下载量: 12.25k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2016-02-12