comparison 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
comparison
equal deleted inserted replaced
327:4e25eb77cd1d 328:a57a107b9547
107 107
108 LOG(WARNING) << "The file extension \".mrxs\" indicates a MIRAX / 3DHISTECH image, " 108 LOG(WARNING) << "The file extension \".mrxs\" indicates a MIRAX / 3DHISTECH image, "
109 << "skipping auto-detection of the file format"; 109 << "skipping auto-detection of the file format";
110 return ImageCompression_Unknown; 110 return ImageCompression_Unknown;
111 } 111 }
112 else if (tmp == ImageCompression_Tiff &&
113 boost::algorithm::ends_with(lower, ".scn"))
114 {
115 LOG(INFO) << "The file extension \".scn\" indicates a Leica image, "
116 << "use the flag \"--reencode 1\" or \"--force-openslide 1\" if you encounter problems";
117 return ImageCompression_Tiff;
118 }
112 else 119 else
113 { 120 {
114 return tmp; 121 return tmp;
115 } 122 }
116 } 123 }