mirror of
https://github.com/lovell/sharp.git
synced 2026-02-04 21:56:18 +01:00
Added Deep Zoom support.
Added OpenSuse 13.1 and 13.2 support in preinstall.sh script. Added OpenSlide support in preinstall script. Added unit tests for Deep Zoom and OpenSlide.
This commit is contained in:
committed by
Lovell Fuller
parent
5240eeb518
commit
2d1e6f2644
@@ -28,6 +28,9 @@ namespace sharp {
|
||||
bool IsTiff(std::string const &str) {
|
||||
return EndsWith(str, ".tif") || EndsWith(str, ".tiff") || EndsWith(str, ".TIF") || EndsWith(str, ".TIFF");
|
||||
}
|
||||
bool IsDz(std::string const &str) {
|
||||
return EndsWith(str, ".dzi") || EndsWith(str, ".DZI");
|
||||
}
|
||||
|
||||
/*
|
||||
Determine image format of a buffer.
|
||||
@@ -103,6 +106,7 @@ namespace sharp {
|
||||
} else if(vips_foreign_is_a("magickload", file)) {
|
||||
imageType = ImageType::MAGICK;
|
||||
}
|
||||
|
||||
return imageType;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user