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