Releases: Intervention/image-laravel
Releases · Intervention/image-laravel
1.5.6
1.5.5
Full Changelog: 1.5.4...1.5.5
1.5.4
What's Changed
- Change response instantiation in
ImageResponseFactory::class
Full Changelog: 1.5.3...1.5.4
1.5.3
1.5.2
- Hotfix of an interference in combination with custom session handler in Laravel applications @olivervogel see #16
Full Changelog: 1.5.1...1.5.2
1.5.1
What's Changed
- New image response macro by @olivervogel in #15
The package now includes a Laravel response macro that can be used to elegantly encode image resources and convert it to an HTTP response in a single step.
Example
use Illuminate\Support\Facades\Route;
use Illuminate\Support\Facades\Storage;
use Intervention\Image\Format;
use Intervention\Image\Laravel\Facades\Image;
Route::get('/', function () {
$image = Image::read(Storage::get('example.jpg'))
->scale(height: 300);
return response()->image($image, Format::WEBP, quality: 65);
});
Full Changelog: 1.4.0...1.5.0
1.5.0
What's Changed
- New image response macro by @olivervogel in #15
The package now includes a Laravel response macro that can be used to elegantly encode image resources and convert it to an HTTP response in a single step.
Example
use Illuminate\Support\Facades\Route;
use Illuminate\Support\Facades\Storage;
use Intervention\Image\Format;
use Intervention\Image\Laravel\Facades\Image;
Route::get('/', function () {
$image = Image::read(Storage::get('example.jpg'))
->scale(height: 300);
return response()->image($image, Format::WEBP, quality: 65);
});
Full Changelog: 1.4.0...1.5.0