mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2025-08-04 20:15:28 -04:00
Merge pull request #224 from Schmidor/tiff_oldjpeg_srcregion
Fix reading srcRegion for OLD_JPEG
This commit is contained in:
commit
f9229028ee
@ -1079,7 +1079,7 @@ public class TIFFImageReader extends ImageReaderBase {
|
||||
|
||||
try (ImageInputStream stream = new SubImageInputStream(imageInput, length)) {
|
||||
jpegReader.setInput(stream);
|
||||
jpegParam.setSourceRegion(new Rectangle(0, 0, width, height));
|
||||
jpegParam.setSourceRegion(srcRegion);
|
||||
|
||||
if (interpretation == TIFFExtension.PHOTOMETRIC_YCBCR || interpretation == TIFFBaseline.PHOTOMETRIC_RGB) {
|
||||
jpegParam.setDestination(destination);
|
||||
|
Loading…
x
Reference in New Issue
Block a user