g4t/laravel-image-resizing
Composer 安装命令:
composer require g4t/laravel-image-resizing
包简介
:package_description
关键字:
README 文档
README
You can change the image size while uploading
This is where your description should go. Take a look at contributing.md to see a to do list.
Installation
Via Composer
$ composer require g4t/laravel-image-resizing
now publish ImageResizing.php using this command:
$ php artisan vendor:publish --provider=g4t\ImageResizing\ImageResizingServiceProvider
Usage
in folder `config` You will find `ImageResizing.php` you will find some examples there you can define: Image `height` Image `width` `path` to save images `save_orginal` to save orginal image or not `full_url` to return full url or not `base_url` to use with `full_url`
Use in Controller
use g4t\ImageResizing\Upload; . . . return Upload::file($request->image, 'small');
small in our example can find it in ImageResizing.php
License
MIT. Please see the license file for more information.
统计信息
- 总下载量: 6
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-12-12