Repository navigation
Conversation
Drupal core's image styles can convert derivatives to WebP, but GD was configured with --with-jpeg only, so imagewebp() is missing and every WebP-converting style fails locally with "Unable to generate the derived image". Add --with-webp and install libwebp-dev explicitly (it was only present as an indirect dependency). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
shaundrong
approved these changes
Oct 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Any Drupal image style with a Convert → WebP effect fails to generate locally:
The image URL returns a 500 and the page shows a broken image. On ucdcweb, 5 of 23 image styles (
thumbnail,medium,large,wide,media_library) convert to WebP, so staff photos, course and instructor images, and campus logos are all broken locally. That also made the new Playwright visual regression suite report false failures against live.Change
docker-php-ext-configure gd --with-jpeg --with-webplibwebp-devexplicitly. It was already in the image, but only as an indirect dependency.🤖 Generated with Claude Code