File: /www/wwwroot/mm.paycheckc.com/vendor/topthink/think-image/README.md
# The ThinkPHP5 Image Package
[](https://travis-ci.org/top-think/think-image)
[](https://codecov.io/github/top-think/think-image)
[](https://github.com/top-think/think-image/releases)
[](https://github.com/top-think/think-image/releases/latest)
[](https://github.com/top-think/think-image/releases/latest)
[](https://packagist.org/packages/topthink/think-image)
[](https://packagist.org/packages/topthink/think-image)
## 安装
> composer require topthink/think-image
## 使用
~~~
$image = \think\Image::open('./image.jpg');
或者
$image = \think\Image::open(request()->file('image'));
$image->crop(...)
->thumb(...)
->water(...)
->text(....)
->save(..);
~~~