1
This commit is contained in:
29
vendor/topthink/think-image/README.md
vendored
Normal file
29
vendor/topthink/think-image/README.md
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
# 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(..);
|
||||
|
||||
~~~
|
||||
Reference in New Issue
Block a user