orchestra/imagine
Imagine (Wrapper) Component for Laravel
Imagine (Wrapper) Component is a Laravel package wrapper for Imagine.
Version Compatibility
| Laravel | Imagine |
|---|---|
| 5.5.x | 3.5.x |
| 5.6.x | 3.6.x |
| 5.7.x | 3.7.x |
| 5.8.x | 3.8.x |
| 6.x | 4.x |
| 7.x | 5.x |
| 8.x | 6.x |
Installation
To install through composer, run the following command from terminal:
composer require "orchestra/imagine"
Configuration
Add Orchestra\Imagine\ImagineServiceProvider service provider in config/app.php.
'providers' => [
// ...
Orchestra\Imagine\ImagineServiceProvider::class,
],
Add Imagine alias in config/app.php.
'aliases' => [
// ...
'Imagine' => Orchestra\Imagine\Facade::class,
],
Usage
Here a simple example how to create a thumbnail from an image:
<?php
use Imagine\Image\ImageInterface;
use Orchestra\Imagine\Jobs\CreateThumbnail;
dispatch(new CreateThumbnail([
'path' => $path,
'filename' => $filename, // filename without extension
'extension' => $extension,
'format' => '{filename}.thumb.{extension}',
'dimension' => 320, // width and height will be 320.
'mode' => ImageInterface::THUMBNAIL_OUTBOUND,
'filter' => ImageInterface::FILTER_UNDEFINED,
]));
Related Packages
orchestra/support-providers
Support (Providers) Component for Laravel and Orchestra Platform
185,996
3
Version History
| Version | Released | PHP | License |
|---|---|---|---|
| v6.0.0 | ^7.3 | | MIT | |
| v5.0.0 | >=7.2 | MIT | |
| v4.0.0 | >=7.2 | MIT | |
| v3.8.0 | >=7.1 | MIT | |
| v3.7.1 | >=7.1 | MIT | |
| v3.7.0 | >=7.1 | MIT | |
| v3.6.0 | >=7.0 | MIT | |
| v3.5.0 | >=7.0 | MIT | |
| v3.4.0 | >=5.6.0 | MIT | |
| v3.3.0 | >=5.6.0 | MIT | |
| v3.2.1 | >=5.5.0 | MIT | |
| v3.2.0 | >=5.5.0 | MIT | |
| v3.1.3 | >=5.5.0 | MIT | |
| v3.1.2 | >=5.5.0 | MIT | |
| v3.1.1 | >=5.5.0 | MIT | |
| v3.1.0 | >=5.4.0 | MIT | |
| v3.0.1 | >=5.4.0 | MIT | |
| v3.0.0 | >=5.4.0 | MIT | |
| v2.2.1 | >=5.4.0 | MIT | |
| v2.2.0 | >=5.4.0 | MIT | |
| v2.1.1 | MIT | ||
| v2.1.0 | MIT | ||
| v2.0.0 | MIT | ||
| v1.0.0 | MIT |
Pre-releases (1)
| Version | Released | License |
|---|---|---|
| v2.1.0-BETA1 | MIT |