Generated WebP image was white when originally uploaded

Created on 12 November 2024, 5 months ago

Problem/Motivation

Client reported an issue today when creating a node with a Media Entity and uploaded a new PNG file with a transparent background. When the node was saved with the new media entity attached (which was placed as a reusable media entity managed through the Media Library module), the WebP image that was generated was a completely white image.

In troubleshooting the issue, I pulled the original image that was uploaded from the web server and created a new node, and the resulting WebP image was displaying as expected.

    Technical information
  • Drupal: version 10.3.1
  • WebP: version 8.x-1.0-rc2 (no patches)
    • Image Quality: 80
  • Focal Point: version 2.1.1
  • Blazy: version 8.x-2.27
  • Crop: version 8.x-2.4

  • ImageMagick: version 4.0.1
    • ImageMagic version 7 on web host
    • Configured to process images at 70% image quality
  • Configured Image Style: Focal Point Scale and Crop 400 x 225
πŸ› Bug report
Status

Active

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States lhridley

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024