[ 
https://issues.apache.org/jira/browse/PDFBOX-5597?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17721298#comment-17721298
 ] 

Tilman Hausherr edited comment on PDFBOX-5597 at 4/9/26 12:36 PM:
------------------------------------------------------------------

Be patient. There's a discrepancy between the image size returned by ImageIO 
and the one we're expecting. The good thing is that the image returned is OK. 
So it gets garbled in PDFBox itself.

At 100% with subsampling we expect 2401 x 1696 in 
{{SampledImageReader.getRGBImage()}} but in {{JBIG2Filter.decode()}} the image 
gathered from {{reader.read()}} is 2400 x 1695.


was (Author: tilman):
Be patient. There's a discrepancy between the image size returned by ImageIO 
and the one we're expecting. The good thing is that the image returned is OK. 
So it gets garbled in PDFBox itself.

At 100% with subsampling we expect 2401 x 1696 in SampledImageReader but the 
image from ImageIO is 2400 x 1695.

> The image drawn is garbled
> --------------------------
>
>                 Key: PDFBOX-5597
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5597
>             Project: PDFBox
>          Issue Type: Bug
>            Reporter: liu
>            Priority: Major
>              Labels: jbig2, subsampling
>         Attachments: image0.jpg, image17.pdf, screenshot-1.png, 
> screenshot-2.png, screenshot-3.png, test.pdf, test6.pdf
>
>




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to