hrjy e8e630b068 commit 1 年之前
..
src e8e630b068 commit 1 年之前
tests e8e630b068 commit 1 年之前
.gitignore e8e630b068 commit 1 年之前
.travis.yml e8e630b068 commit 1 年之前
LICENSE e8e630b068 commit 1 年之前
README.md e8e630b068 commit 1 年之前
composer.json e8e630b068 commit 1 年之前
phpunit.xml e8e630b068 commit 1 年之前

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