Skip to content

Commit

Permalink
Add support for libvips ImageMagick v7 loaders (#2258)
Browse files Browse the repository at this point in the history
  • Loading branch information
vouillon authored Jun 15, 2020
1 parent 0f58f95 commit 4470048
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/common.cc
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,8 @@ namespace sharp {
imageType = ImageType::HEIF;
} else if (EndsWith(loader, "PdfBuffer")) {
imageType = ImageType::PDF;
} else if (EndsWith(loader, "MagickBuffer")) {
} else if (EndsWith(loader, "MagickBuffer") ||
EndsWith(loader, "Magick7Buffer")) {
imageType = ImageType::MAGICK;
}
}
Expand Down Expand Up @@ -236,7 +237,9 @@ namespace sharp {
imageType = ImageType::FITS;
} else if (EndsWith(loader, "Vips")) {
imageType = ImageType::VIPS;
} else if (EndsWith(loader, "Magick") || EndsWith(loader, "MagickFile")) {
} else if (EndsWith(loader, "Magick") ||
EndsWith(loader, "MagickFile") ||
EndsWith(loader, "Magick7File")) {
imageType = ImageType::MAGICK;
}
} else {
Expand Down

0 comments on commit 4470048

Please sign in to comment.