mindinventory/glide-image-utility
Composer 安装命令:
composer require mindinventory/glide-image-utility
包简介
Easily convert images with Glide Image Utility.
关键字:
README 文档
README
Easily convert images with Glide Image Utility
This package provides an easy to use class to manipulate images. Using this package we can manipulate aws s3 bucket image also.
Here's an example of how the package can be used:
MiImage::createImage($ImagePath,['w'=> 50, 'h'=>100, 'fit'=>'crop', 'bg' => 'CCC']);
Installation
You can install the package through Composer.
composer require mindinventory/glide-image-utility
In Laravel 5.5 the service provider and facade will automatically get registered. In older versions of the framework just add the service provider and facade in config/app.php file:
'providers' => [ ... Mi\MiImageUtility\ImageServiceProvider::class, ... ];
You can publish the config file of the package using artisan.
php artisan vendor:publish --provider="Mi\MiImageUtility\ImageServiceProvider" --tag=config
The config file looks like this:
<?php return [ /* This is cache folder that create inside storage/images/cache folder */ 'cache_folder' => env('Cache_Folder', storage_path('images/cache')), ];
Usage
Here's a quick example that shows how an image can be modified:
MiImage::createImage($pathToImage,['w'=> 50, 'h'=>50, 'fit'=>'crop', 'bg' => 'CCC']);
In modification parameter you can use w = Width, h = Height, fit = Fit parameter [contain, max, fill, stretch, crop], q = Quality [Between 0 to 100], fm = Format [jpg, pjeg(progressive jpg), gif, webp] bg = Background Color For More Colors
Support us
Mindinventory itself is a self-explanatory word. In fact, we have accumulated the best talents available in India, particularly from the eminent technical education institutes located at Ahmedabad in the western Indian region where headquarter is located. Please visit our website.
统计信息
- 总下载量: 2.22k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 11
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-01-16