Problem/Motivation

WebP derivative image generation is broken because imageapi_optimize_webp is not D11 compatible despite claiming that, see #3504713: Call to undefined method Drupal\system\Plugin\ImageToolkit\GDToolkit::getResource()

Might be the cause for #3587540: File upload broken

Steps to reproduce

See https://www.drupal.nl/partners/ronder - image on the right is not present

Logs:

[2026-04-30T08:53:41Z] app: Call to undefined method Drupal\system\Plugin\ImageToolkit\GDToolkit::getResource() in Drupal\imageapi_optimize_webp\Plugin\ImageAPIOptimizeProcessor\WebP->applyToImage() (line 25 of ./modules/contrib/imageapi_optimize_webp/src/Plugin/ImageAPIOptimizeProcessor/WebP.php).

Proposed resolution

Apply patch from #3504713: Call to undefined method Drupal\system\Plugin\ImageToolkit\GDToolkit::getResource() - https://www.drupal.org/files/issues/2025-02-21/imageapi_optimize_webp_v3...

Remaining tasks

Review

User interface changes

None

API changes

None

Data model changes

None

Issue fork la_eu-3587815

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

taran2l created an issue. See original summary.

taran2l’s picture

Status: Active » Needs review
evilargest’s picture

Status: Needs review » Reviewed & tested by the community

The fix looks good to me!

  • taran2l committed 54774ba3 on staging
    fix: #3587815 WebP derivative generation is broken
    
    By: taran2l
    By:...
taran2l’s picture

Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

  • taran2l committed 54774ba3 on 2.x
    fix: #3587815 WebP derivative generation is broken
    
    By: taran2l
    By:...

  • taran2l committed 54774ba3 on downstream/la_nl
    fix: #3587815 WebP derivative generation is broken
    
    By: taran2l
    By:...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.