TypeError sFormatEnabled(): Argument #1 ($format) must be of type string

Created on 18 April 2024, 2 months ago

Following error occurred while I was migrating a bunch of images:

TypeError: Drupal\imagemagick\ImagemagickFormatMapper::isFormatEnabled(): Argument #1 ($format) must be of type string, null given, called in imagemagick/src/Plugin/ImageToolkit/ImagemagickToolkit.php on line 696 in Drupal\imagemagick\ImagemagickFormatMapper->isFormatEnabled() (line 98 of imagemagick/src/ImagemagickFormatMapper.php).

Apparently the format is set on a different frame than the first one. This is what the metadata array looked like:

Array
(
    [frames] => Array
        (
            [0] => Array
                (
                    [Found a generic profile, type exif] => 
                )
            [1] => Array
                (
                    [format] => PNG
                    [width] => 626
                    [height] => 626
                    [exif_orientation] => unknown
                )
        )
)
πŸ› Bug report
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium Matthijs

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024