Skip to content

Releases: Intervention/image-laravel

1.5.6

04 Apr 17:43
Compare
Choose a tag to compare

What's Changed

  • Bugfix: Register macro only when ResponseFactory is resolved by @apih in #20

Full Changelog: 1.5.5...1.5.6

1.5.5

26 Feb 16:22
3ee4b63
Compare
Choose a tag to compare

Full Changelog: 1.5.4...1.5.5

1.5.4

25 Feb 16:33
Compare
Choose a tag to compare

What's Changed

  • Change response instantiation in ImageResponseFactory::class

Full Changelog: 1.5.3...1.5.4

1.5.3

25 Feb 15:33
e0f001a
Compare
Choose a tag to compare
  • Hotfix: Disable response macro in console. #18

1.5.2

23 Feb 16:25
afe15f5
Compare
Choose a tag to compare
  • 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

15 Feb 07:17
c92241c
Compare
Choose a tag to compare

What's Changed

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

15 Feb 07:00
3a3d38f
Compare
Choose a tag to compare

What's Changed

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.4.0

18 Jan 15:57
6ee3d22
Compare
Choose a tag to compare

What's Changed

Full Changelog: 1.3.0...1.4.0