# HG changeset patch # User Sebastien Jodogne # Date 1564760529 -7200 # Node ID 11413cc2b9d6bfec068ffd6be04e4fcf1f7af2c9 # Parent 1390d5c876030b0ee0c59557c3fb543286682508 importing grayscale tiff diff -r 1390d5c87603 -r 11413cc2b9d6 Framework/Inputs/HierarchicalTiff.cpp --- a/Framework/Inputs/HierarchicalTiff.cpp Fri Aug 02 16:03:15 2019 +0200 +++ b/Framework/Inputs/HierarchicalTiff.cpp Fri Aug 02 17:42:09 2019 +0200 @@ -160,6 +160,13 @@ return false; } } + else if (compression == ImageCompression_Jpeg && + channels == 1 && // This is a grayscale image + bpp == 8) + { + pixelFormat = Orthanc::PixelFormat_Grayscale8; + photometric = Orthanc::PhotometricInterpretation_Monochrome2; + } else { return false;