Skip to content
Snippets Groups Projects

Issue #3188324: GraphicsMagick fails to identify SVG images

@@ -170,6 +170,11 @@ class ImagemagickIdentify extends FileMetadataPluginBase {
// Add source file.
$arguments->setSource($this->getLocalTempPath());
// Add the verbose flag to identify SVG files.
if ($this->execManager->getPackageSuite() === PackageSuite::Graphicsmagick) {
$arguments->add(['-verbose'], ArgumentMode::PreSource);
}
// Prepare the -format argument according to the graphics package in use.
match ($this->execManager->getPackageSuite()) {
PackageSuite::Imagemagick => $arguments->add(
Loading