GDToolkit::load() error: 'iCCP: too many profiles'

Created on 13 September 2024, 7 months ago

Problem/Motivation

I'm seeing this error in my Drupal logs that I've been attempting to debug. I can't figure out what is causing it...

The error is:

Warning: imagecreatefrompng(): gd-png: libpng warning: iCCP: too many profiles in Drupal\system\Plugin\ImageToolkit\GDToolkit->load() (line 271 of core/modules/system/src/Plugin/ImageToolkit/GDToolkit.php).

This seems to happen for the thumbnail image style generation on the /admin/content/media page.

The stack trace also shows this:

Drupal\image\Entity\ImageStyle->createDerivative('image-here.png.webp', 'public://styles/thumbnail/image-here.png.webp')

Could this possibly be because of the .webp extension? Drupal perhaps doesn't like it when it attempts to generate the image style?

I'm having trouble figuring out exactly what the "iCCP: too many profiles" error means here.

Any ideas would be greatly appreciated! Thanks!

💬 Support request
Status

Active

Version

10.3

Component
Image system 

Last updated 7 days ago

Created by

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

Comments & Activities

Production build 0.71.5 2024