Download the PHP package square1/resized-laravel without Composer
On this page you can find all versions of the php package square1/resized-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download square1/resized-laravel
More information about square1/resized-laravel
Files in square1/resized-laravel
Package resized-laravel
Short Description Laravel package for resized.co, the on-demand image manipulation service.
License MIT
Homepage https://github.com/square1-io/resized-php-laravel
Informations about the package resized-laravel
Resized
This is the Laravel package for resized.co, an on-demand image resize manipulation service.
Install
Via Composer
Version 2 removed support for PHP7.1 - if you require it, run
To use the Resized Service Provider, you must register the provider when bootstrapping your Laravel application.
Find the providers
key in your config/app.php
and register the Resized Service Provider.
Find the aliases
key in your config/app.php
and add the Resized facade alias.
Configuration
By default, the package uses the following environment variables to auto-configure the plugin without modification:
Usage
Set the default failover image.
Generate a 300x500 resized image URL.
Generate an image URL that is contrained to 300 width whilst mantaining aspect ratio.
Generate an image URL that is contrained to 500 height whilst mantaining aspect ratio.
Override image slug.
Specify the compression level through the options array.
Data ranging from 0 (poor quality, small file) to 100 (best quality, big file). Quality is only applied if you're encoding JPG format since PNG compression is lossless and does not affect image quality. Default: 90.
Testing
License
The MIT License (MIT). Please see License File for more information.