[
https://issues.apache.org/jira/browse/PDFBOX-2067?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13993095#comment-13993095
]
Tilman Hausherr commented on PDFBOX-2067:
-----------------------------------------
I added code to check that the masks have a certain amount of different colors
- this way we can detect if a mask is black after a modification. I can't check
for identity between the alpha values I set in the test and the values within a
BufferedImage.TYPE_BYTE_GRAY because the raster values and the RGB values are
not identical, the RGB values are calculated by java somehow. This was done in
rev 1593414 for the trunk and rev 1593416 for the 1.8 branch.
> Error creating JPEG image with SMask
> ------------------------------------
>
> Key: PDFBOX-2067
> URL: https://issues.apache.org/jira/browse/PDFBOX-2067
> Project: PDFBox
> Issue Type: Bug
> Components: PDModel
> Affects Versions: 2.0.0
> Reporter: Juraj Lonc
> Assignee: Tilman Hausherr
> Attachments: PDFBOX-2067_JPEGFactory.diff
>
>
> JPEGFactory.createFromImage() has problems with images with transparency
> (alpha data).
--
This message was sent by Atlassian JIRA
(v6.2#6252)