Mercurial > hg > orthanc-wsi
diff Framework/Enumerations.cpp @ 328:a57a107b9547
add warning about Leica images
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 18 Oct 2024 08:43:15 +0200 |
parents | 0683312e21ba |
children | e32ccca4d772 |
line wrap: on
line diff
--- a/Framework/Enumerations.cpp Thu Oct 17 17:55:49 2024 +0200 +++ b/Framework/Enumerations.cpp Fri Oct 18 08:43:15 2024 +0200 @@ -109,6 +109,13 @@ << "skipping auto-detection of the file format"; return ImageCompression_Unknown; } + else if (tmp == ImageCompression_Tiff && + boost::algorithm::ends_with(lower, ".scn")) + { + LOG(INFO) << "The file extension \".scn\" indicates a Leica image, " + << "use the flag \"--reencode 1\" or \"--force-openslide 1\" if you encounter problems"; + return ImageCompression_Tiff; + } else { return tmp;