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

John Hewson commented on PDFBOX-2750:
-------------------------------------

Yes, the main problem appears to be that the mask is larger than the image and 
is being scaled-down. When rendering at a high DPI the combined image+mask is 
then scaled-up again, resulting in a low-quality image.

Your solution of scaling the image to the mask, when the mask is larger should 
solve this. My only concern is that concePDImageXObject.getImage() will then be 
producing the "wrong" sized image as far as the API is concerned. Given that we 
already have getOpaqueImage() which returns the raw image, I don't think that 
it matters - we should just add a note to the getImage() JavaDoc that the size 
of the image will be the larger of the image itself or its mask. What do you 
think?

> Rendering in poor quality in 2.0 but not in 1.8.*
> -------------------------------------------------
>
>                 Key: PDFBOX-2750
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2750
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Rendering
>    Affects Versions: 2.0.0
>            Reporter: Tilman Hausherr
>            Assignee: John Hewson
>         Attachments: PDFBOX-2750-1.8.jpg, PDFBOX-2750-2.0.jpg, PDFBOX-2750.pdf
>
>
> The attached PDF is rendered in poor quality in 2.0, but not in 1.8.* 
> (submitted by Vanja K. on the user mailing list).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to