Mercurial > hg > orthanc-wsi
changeset 328:a57a107b9547
add warning about Leica images
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 18 Oct 2024 08:43:15 +0200 |
parents | 4e25eb77cd1d |
children | ae2d769215d2 |
files | Framework/Enumerations.cpp |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
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;