# HG changeset patch # User Sebastien Jodogne # Date 1729233795 -7200 # Node ID a57a107b9547518c19247a01ca50c3c01542f688 # Parent 4e25eb77cd1d3f24f58fdd003133ecc34c01b483 add warning about Leica images diff -r 4e25eb77cd1d -r a57a107b9547 Framework/Enumerations.cpp --- 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;