You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (Jira)" <ji...@apache.org> on 2021/05/20 18:03:00 UTC

[jira] [Commented] (PDFBOX-5196) Wrong color space detected for some Jpeg images

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

Tilman Hausherr commented on PDFBOX-5196:
-----------------------------------------

Duplicate of PDFBOX-5137, but the good thing is that you provided an example (which the other person didn't). I'll try to fix this in the weekend.

> Wrong color space detected for some Jpeg images
> -----------------------------------------------
>
>                 Key: PDFBOX-5196
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5196
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Parsing
>    Affects Versions: 2.0.23
>            Reporter: Stéphane Vallée
>            Priority: Major
>         Attachments: lotus.jpg
>
>
> When retrieving the number of components in a jpeg image, class org.apache.pdfbox.pdmodel.graphics.image.JPEGFactory seems to retrieve the wrong metadata ("markerSequence/sos/@numScanComponents" instead of "markerSequence/sof/@numFrameComponents").
> As a consequence, a wrong color space might be assigned to the image, preventing such image to be properly rendered in an PDF document.
> Attached is a jpeg file whose color space will be wrongly determined (PDDeviceGray.INSTANCE instead of PDDeviceRGB.INSTANCE)
>  
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org