Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Image Laravel Laravel Package

intervention/image-laravel

Laravel integration for Intervention Image that provides a service provider, facade, and publishable configuration file, letting you set the image driver and options once centrally instead of repeating them on every image manager call.

View on GitHub
Deep Wiki
Context7
4.1.0

Hotfix for compatibility with Laravel 13.20

Starting with version 13.20, Laravel introduced its own image integration based on Intervention Image. Unfortunately, this led to naming conflicts with facades and configuration files if you had installed intervention/image-laravel.

This update resolves these issues, but it also includes significant changes.

  • The facade binding was renamed from image to intervention.image
  • The published config file was renamed from image.php to intervention-image.php

If you're using intervention/image-laravel with Laravel 13.20, I recommend updating to version 4.1.0 immediately.

To avoid future problems with the configuration file, I recommend renaming the file from config/image.php to config/intervention-image.php after the update. However, this is not strictly necessary the legacy config is still detected by a fallback.

In the rather unlikely event that the image manger is resolved via an app('image') call, the new naming convention should be used: app('intervention.image').

Full Changelog: https://github.com/Intervention/image-laravel/compare/4.0.1...4.1.0

4.0.1

What's Changed

  • Bind Intervention\Image\ImageManager::class and Intervention\Image\Interfaces\ImageManagerInterface as configured singletons.

Code Example:


use Intervention\Image\Interfaces\ImageManagerInterface;

class ImageController extends Controller
{
    /**
     * Create a new controller instance.
     */
    public function __construct(
        protected ImageManagerInterface $imageManager,
    ) {}

    /**
     * Store a new Image.
     */
    public function store(Request $request): RedirectResponse
    {
        $image = $this->imageManager->decode($request->image);
 
        // image manipulation ...
 
        return redirect('/images');
    }
}
4.0.0

What's Changed

  • Major Release 4.0.0 to support new Intervention Image v4.0.0
1.5.9

What's Changed

1.5.8

What's Changed

Full Changelog: https://github.com/Intervention/image-laravel/compare/1.5.7...1.5.8

1.5.6

What's Changed

Full Changelog: https://github.com/Intervention/image-laravel/compare/1.5.5...1.5.6

1.5.4

What's Changed

  • Change response instantiation in ImageResponseFactory::class

Full Changelog: https://github.com/Intervention/image-laravel/compare/1.5.3...1.5.4

1.5.3
1.5.2

Full Changelog: https://github.com/Intervention/image-laravel/compare/1.5.1...1.5.2

1.5.1

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: https://github.com/Intervention/image-laravel/compare/1.4.0...1.5.0

1.5.0

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: https://github.com/Intervention/image-laravel/compare/1.4.0...1.5.0

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
hotmeteor/eco-env
mvaliolahi/hydrate
wearede/tbcpay-php
parsnick/steak
thibaud-dauce/mattermost-php
multilinguals/apollo-client
antaresbr/collection
kr0lik/phpstan-rules
loco/loco
starfederation/datastar-php
yupmin/modern-phystrix
stephenjude/extended-artisan-commands
lumphp/laravel-macroable
lumphp/laravel-collections
lumphp/laravel-contracts
sermepa/sermepa
arkecosystem/fortify
arkecosystem/ui
owowagency/laravel-resources
gtjamesa/php-standards