qingjian/vendor/topthink/think-image
wangxinglong 1536e49dfe 初始化 2021-08-06 18:50:55 +08:00
..
src 初始化 2021-08-06 18:50:55 +08:00
tests 初始化 2021-08-06 18:50:55 +08:00
.gitignore 初始化 2021-08-06 18:50:55 +08:00
.travis.yml 初始化 2021-08-06 18:50:55 +08:00
LICENSE 初始化 2021-08-06 18:50:55 +08:00
README.md 初始化 2021-08-06 18:50:55 +08:00
composer.json 初始化 2021-08-06 18:50:55 +08:00
phpunit.xml 初始化 2021-08-06 18:50:55 +08:00

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