[
https://issues.apache.org/jira/browse/PDFBOX-4771?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17035610#comment-17035610
]
Tilman Hausherr commented on PDFBOX-4771:
-----------------------------------------
What I did:
- put pdImage.getImage() north
- quit when null (won't happen, but who knows)
- if there is an alpha then save as PNG
- removed hasMasks, isn't needed anymore because we have the image
- remove null check that has been done earlier
> JPEG image with transparency can't be extracted
> -----------------------------------------------
>
> Key: PDFBOX-4771
> URL: https://issues.apache.org/jira/browse/PDFBOX-4771
> Project: PDFBox
> Issue Type: Bug
> Components: Utilities
> Affects Versions: 2.0.18
> Reporter: Tilman Hausherr
> Priority: Major
> Fix For: 2.0.19, 3.0.0 PDFBox
>
>
> See TIKA-3040, "javax.imageio.IIOException: Bogus input colorspace" when
> trying to save /DCTDecode encoded image that has a mask, because JPEG images
> can't have alpha.
> I need to think about this a bit, but we'll probably have to save it as a PNG
> image.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]