Weave Code
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. Adds a service provider, facade, and publishable config so you can set a global GD or Imagick driver once and use it throughout your app. Supports Laravel 8+.

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.
nexmo/api-specification
capell-app/block-library
axium/identity
cetria/laravel-dummy-models
cetria/reflection-helper
agropredict/sso-auth-bundle
evolvestudio/spam-protection
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
ecotone/kafka
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin
splash/metadata