wesmiler b9edcf318d wesmiler %!s(int64=6) %!d(string=hai) anos
..
src b9edcf318d wesmiler %!s(int64=6) %!d(string=hai) anos
tests b9edcf318d wesmiler %!s(int64=6) %!d(string=hai) anos
.gitignore b9edcf318d wesmiler %!s(int64=6) %!d(string=hai) anos
.travis.yml b9edcf318d wesmiler %!s(int64=6) %!d(string=hai) anos
LICENSE b9edcf318d wesmiler %!s(int64=6) %!d(string=hai) anos
README.md b9edcf318d wesmiler %!s(int64=6) %!d(string=hai) anos
composer.json b9edcf318d wesmiler %!s(int64=6) %!d(string=hai) anos
phpunit.xml b9edcf318d wesmiler %!s(int64=6) %!d(string=hai) anos

README.md

The ThinkPHP5 Image Package

Build Status Coverage Status Downloads Releases Releases Downloads Packagist Status Packagist Downloads

安装

composer require topthink/think-image

使用

$image = \think\Image::open('./image.jpg');
或者
$image = \think\Image::open(request()->file('image'));


$image->crop(...)
    ->thumb(...)
    ->water(...)
    ->text(....)
    ->save(..);