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
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
Comment #3
taran2lComment #4
evilargest commentedThe fix looks good to me!
Comment #6
taran2l