From e62bf6e18f3c515482661fda7fe4c889220e245d Mon Sep 17 00:00:00 2001 From: artemp Date: Fri, 12 May 2017 15:55:46 +0200 Subject: [PATCH] TIFF I/O - use `scanline` to read `stripped` grey for now. --- src/tiff_reader.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/tiff_reader.cpp b/src/tiff_reader.cpp index 2a0baf9b3..99e9fe525 100644 --- a/src/tiff_reader.cpp +++ b/src/tiff_reader.cpp @@ -399,12 +399,13 @@ image_any tiff_reader::read_any_gray(std::size_t x0, std::size_t y0, std::siz read_tiled(x0, y0, data); return image_any(std::move(data)); } - else if (read_method_ == stripped) - { - image_type data(width, height); - read_stripped(x0, y0, data); - return image_any(std::move(data)); - } + // TODO: temp disable and default to `scanline` method for stripped images. + //else if (read_method_ == stripped) + //{ + // image_type data(width, height); + // read_stripped(x0, y0, data); + // return image_any(std::move(data)); + //} else { TIFF* tif = open(stream_);