Kirin 93a3391a21 init 11 月之前
..
src 93a3391a21 init 11 月之前
tests 93a3391a21 init 11 月之前
.DS_Store 93a3391a21 init 11 月之前
.gitignore 93a3391a21 init 11 月之前
.travis.yml 93a3391a21 init 11 月之前
LICENSE 93a3391a21 init 11 月之前
README.md 93a3391a21 init 11 月之前
composer.json 93a3391a21 init 11 月之前
phpunit.xml 93a3391a21 init 11 月之前

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(..);