Download the PHP package salahmyn/laravel-image-resize without Composer
On this page you can find all versions of the php package salahmyn/laravel-image-resize. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download salahmyn/laravel-image-resize
More information about salahmyn/laravel-image-resize
Files in salahmyn/laravel-image-resize
Package laravel-image-resize
Short Description Dynamically resize an image and returns the URL using Intervention and Storage
License MIT
Homepage https://github.com/salahmyn/laravel-image-resize
Informations about the package laravel-image-resize
Image Resize Helper for Laravel 5.x
Fork from MaximumAdvertising/laravel-image-resize
Dynamically resize an image and returns the URL using Intervention and Storage
Require
- Laravel 5+
- Intervention Image ^2.4
Supported Filesystem Drivers
- Local
- S3
- Oss (Aliyun Cloud Storage)
Installation
This package can be installed through Composer.
For Laravel 5.4 and lower, you'll have to register the service provider and alias manually.
Add to service providers
And alias
Publish config and assets (Optional)
Usage
Accepted parameters:
In HTML:
Fit (resize & crop) an image to 200x200px
Resize an image to 200x200px
Fit (resize & crop) an image to 200px width, with auto height
Fit (resize & crop) an image to 200px width, with auto height
sample output
alias [asset]
an assets
drive in config filesystems
is required to use asset
method which handle files in public
directory
In HTML:
Tests
Run tests with:
All versions of laravel-image-resize with dependencies
intervention/image Version ^2.4
illuminate/support Version ^6.0
illuminate/config Version ~6.0
illuminate/cache Version ^6.0
league/flysystem Version ~1.0