- Issue created by @Matthijs
- Merge request !38Issue #3441935: Fix support for format in second frame β (Open) created by Matthijs
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
)
)
)
Active
3.0
Code