Add support for writing dz format to zip container (#402)

To enable this you can either use the `.zip` or `.szi` file extensions
or use `.tile({container: 'zip'})` with the `.dzi` extension.
This commit is contained in:
Felix Bünemann
2016-04-08 20:58:13 +02:00
committed by Lovell Fuller
parent ef61da3051
commit b224874332
8 changed files with 107 additions and 4 deletions

View File

@@ -52,6 +52,9 @@ namespace sharp {
bool IsDz(std::string const &str) {
return EndsWith(str, ".dzi") || EndsWith(str, ".DZI");
}
bool IsDzZip(std::string const &str) {
return EndsWith(str, ".zip") || EndsWith(str, ".ZIP") || EndsWith(str, ".szi") || EndsWith(str, ".SZI");
}
/*
Provide a string identifier for the given image type.