Mercurial > hg > orthanc-wsi
changeset 332:e32ccca4d772
user feedback
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 18 Oct 2024 15:01:09 +0200 |
parents | cf828b381bc9 |
children | db391f32b91c f011fc199b6a |
files | Framework/Enumerations.cpp |
diffstat | 1 files changed, 9 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/Framework/Enumerations.cpp Fri Oct 18 13:16:02 2024 +0200 +++ b/Framework/Enumerations.cpp Fri Oct 18 15:01:09 2024 +0200 @@ -110,10 +110,17 @@ return ImageCompression_Unknown; } else if (tmp == ImageCompression_Tiff && + boost::algorithm::ends_with(lower, ".ndpi")) + { + LOG(WARNING) << "The file extension \".ndpi\" indicates a Hamamatsu image, " + << "use the flag \"--force-openslide 1\" if you do not have enough RAM to store the entire image"; + return ImageCompression_Tiff; + } + 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"; + LOG(WARNING) << "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