[
https://issues.apache.org/jira/browse/PDFBOX-5597?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17763832#comment-17763832
]
Tilman Hausherr commented on PDFBOX-5597:
-----------------------------------------
Hello [~itai], could you have a look whether SampledImageReader is at fault
here or the jbig2 decoder (this would be the file
"org\apache\pdfbox\jbig2\image\Bitmaps.java" in the jbig2 decoder)?
{code}
final int width = (int) Math.ceil(clipped.getWidth() / subsampling);
final int height = (int) Math.ceil(clipped.getHeight() / subsampling);
{code}
[~lycheng] the second file makes no problem here, but IIRC you have your own
getSubsampling() to decide on a scale.
> 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: 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]