Skip to content

build(deps): update intervention/image requirement from ^3.0 to ^4.0#1781

Open
dependabot[bot] wants to merge 1 commit intomasterfrom
dependabot/composer/intervention/image-tw-4.0
Open

build(deps): update intervention/image requirement from ^3.0 to ^4.0#1781
dependabot[bot] wants to merge 1 commit intomasterfrom
dependabot/composer/intervention/image-tw-4.0

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot bot commented on behalf of github Mar 30, 2026

Updates the requirements on intervention/image to permit the latest version.

Release notes

Sourced from intervention/image's releases.

4.0.0

Intervention Image v4.0.0 🔥

Intervention Image Version 4 is a major release for PHP 8.3+ that focuses on improving the API and resolving internal inconsistencies rather than introducing as many new features as possible.

The package remains true to its core principles and continues to offer the familiar quality features like:

  • Fluent API for common image editing tasks
  • Interchangable driver architecture for all popular PHP image processing extensions
  • Support for GD, Imagick and libvips
  • Processing of animated images with all drivers

What is new?

Improved API

The entire API underwent a thorough review. The goal was to identify and resolve internal inconsistencies, ensure greater future-proofing and scalability, and further improve consistency.

Read more about the API improvements

Exception Hierarchy and more detailed Error Messages

At the same time, error and exception messages have been improved to provide clear, immediate insight into what went wrong. These improvements include a restructured exception system with a well-defined hierarchy.

Read more about exceptions

Other Improvements

Other new features include an improved color system with alpha channels for all color spaces, support for Oklab and Oklch color spaces, the use of PHP enums, and many other small improvements.

https://image.intervention.io/v4

Commits
  • 66865f1 Merge branch 'next' into develop
  • 518b529 Edit readme
  • 8127043 Change and rename argument opacity of ImageInterface::insert()
  • 764fa07 Edit doc blocks
  • ab6b54e Edit exception message
  • 1125b5e Add string variants for Alignment::class
  • ee75468 Change type of image in ImageInterface::insert()
  • e46633c Fix intervention/gif to v5
  • fd32c07 Add Size::create()
  • 252e17c Remove todos
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Updates the requirements on [intervention/image](https://github.com/Intervention/image) to permit the latest version.
- [Release notes](https://github.com/Intervention/image/releases)
- [Commits](Intervention/image@3.0.0...4.0.0)

---
updated-dependencies:
- dependency-name: intervention/image
  dependency-version: 4.0.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file php Pull requests that update php code labels Mar 30, 2026
"illuminate/database": "^12.0",
"illuminate/filesystem": "^12.0",
"intervention/image": "^3.0",
"intervention/image": "^4.0",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CRITICAL: Major version upgrade with breaking API changes

Intervention Image v4 has significant breaking changes that will cause runtime errors:

  1. Static factory methods removed: ImageManager::gd() and ImageManager::imagick() no longer exist

    • Used in: lib/common.php:560, src/Models/Upload.php:429
    • Replacement: new ImageManager('gd') or ImageManager::withDriver('gd')
  2. read() method removed: Replaced with decode()

    • Used in: 8+ locations across the codebase
    • Replacement: $manager->decode($source) or $manager->decodePath($path)

All image processing will fail until code is updated to v4 API.

@kilo-code-bot
Copy link
Copy Markdown

kilo-code-bot bot commented Mar 30, 2026

Code Review Summary

Status: 1 Issue Found | Recommendation: Do NOT merge without code updates

Overview

Severity Count
CRITICAL 1
WARNING 0
SUGGESTION 0
Issue Details (click to expand)

CRITICAL

File Line Issue
composer.json 48 Major version upgrade with breaking API changes that will cause runtime errors
Other Observations (not in diff)

Issues found in unchanged code that cannot receive inline comments:

File Line Issue
lib/common.php 560 Uses ImageManager::gd() and ImageManager::imagick() which no longer exist in v4. Must update to new ImageManager('gd')
src/Models/Upload.php 429 Uses ImageManager::gd(autoOrientation: true) - static method no longer exists in v4
lib/common.php 560, 72 Uses $manager->read() which is replaced by decode() in v4
src/Models/Upload.php 590 Uses read() - must change to decode()
src/Models/User.php 177 Uses read() and scaleDown() - scaleDown() exists in v4 but read() must change to decode()
src/API/App/v1/Interventi.php 374 Uses read() - must change to decode()
modules/interventi/actions.php 962, 1057 Uses read() - must change to decode()
modules/automezzi/actions.php 256 Uses read() - must change to decode()
modules/anagrafiche/actions.php 387 Uses read() - must change to decode()
Migration Guide

v3 → v4 API Changes Required:

1. ImageManager instantiation:

// v3 (old)
ImageManager::gd()
ImageManager::imagick()
ImageManager::gd(autoOrientation: true)

// v4 (new)
new ImageManager('gd')
new ImageManager('imagick')
new ImageManager('gd', autoOrientation: true)

2. Reading images:

// v3 (old)
$manager->read($filepath)
$manager->read(base64_decode($data))

// v4 (new)
$manager->decode($filepath)
$manager->decodeBase64($data)
Files Reviewed (1 file)
  • composer.json - 1 CRITICAL issue

Reviewed by glm-5-20260211 · 346,285 tokens

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file php Pull requests that update php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants