zx/vendor/topthink/think-image
gboy ed1278a5e3 first 2024-07-02 15:32:59 +08:00
..
src first 2024-07-02 15:32:59 +08:00
tests first 2024-07-02 15:32:59 +08:00
.gitignore first 2024-07-02 15:32:59 +08:00
.travis.yml first 2024-07-02 15:32:59 +08:00
LICENSE first 2024-07-02 15:32:59 +08:00
README.md first 2024-07-02 15:32:59 +08:00
composer.json first 2024-07-02 15:32:59 +08:00
phpunit.xml first 2024-07-02 15:32:59 +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(..);