diff --git a/src/main/java/edu/illinois/library/cantaloupe/processor/codec/jpeg/TurboJPEGImageWriter.java b/src/main/java/edu/illinois/library/cantaloupe/processor/codec/jpeg/TurboJPEGImageWriter.java index dd28fa90a..c62fe7301 100644 --- a/src/main/java/edu/illinois/library/cantaloupe/processor/codec/jpeg/TurboJPEGImageWriter.java +++ b/src/main/java/edu/illinois/library/cantaloupe/processor/codec/jpeg/TurboJPEGImageWriter.java @@ -155,7 +155,7 @@ public void write(BufferedImage image, // Also, JPEG doesn't support alpha, so we have to remove that, // otherwise readers will interpret as CMYK. if (image.getRaster().getSampleModelTranslateX() < 0 || - image.getRaster().getSampleModelTranslateX() < 0) { + image.getRaster().getSampleModelTranslateY() < 0) { BufferedImage newImage = new BufferedImage( image.getWidth(), image.getHeight(), BufferedImage.TYPE_INT_RGB);