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

Tilman Hausherr edited comment on PDFBOX-5738 at 12/14/23 5:24 AM:
-------------------------------------------------------------------

{code:xml}
<?xml version="1.0" encoding="UTF-8"?><javax_imageio_1.0>
  <Chroma>
    <ColorSpaceType name="YCbCr"/>
    <NumChannels value="4"/>
  </Chroma>
  <Compression>
    <CompressionTypeName value="JPEG"/>
    <Lossless value="FALSE"/>
    <NumProgressiveScans value="1"/>
  </Compression>
  <Dimension>
    <ImageOrientation value="Normal"/>
  </Dimension>
  <Transparency>
    <Alpha value="nonpremultipled"/>
  </Transparency>
</javax_imageio_1.0>
{code}

{code:xml}
<?xml version="1.0" encoding="UTF-8"?><javax_imageio_jpeg_image_1.0>
  <JPEGvariety/>
  <markerSequence>
    <dqt>
      <dqtable elementPrecision="0" qtableId="0"/>
    </dqt>
    <sof process="0" samplePrecision="8" numLines="3508" samplesPerLine="2480" 
numFrameComponents="4">
      <componentSpec componentId="1" HsamplingFactor="1" VsamplingFactor="1" 
QtableSelector="0"/>
      <componentSpec componentId="2" HsamplingFactor="1" VsamplingFactor="1" 
QtableSelector="0"/>
      <componentSpec componentId="3" HsamplingFactor="1" VsamplingFactor="1" 
QtableSelector="0"/>
      <componentSpec componentId="4" HsamplingFactor="1" VsamplingFactor="1" 
QtableSelector="0"/>
    </sof>
    <dht>
      <dhtable class="0" htableId="0"/>
    </dht>
    <dht>
      <dhtable class="1" htableId="0"/>
    </dht>
    <sos numScanComponents="4" startSpectralSelection="0" 
endSpectralSelection="63" approxHigh="0" approxLow="0">
      <scanComponentSpec componentSelector="1" dcHuffTable="0" acHuffTable="0"/>
      <scanComponentSpec componentSelector="2" dcHuffTable="0" acHuffTable="0"/>
      <scanComponentSpec componentSelector="3" dcHuffTable="0" acHuffTable="0"/>
      <scanComponentSpec componentSelector="4" dcHuffTable="0" acHuffTable="0"/>
    </sos>
  </markerSequence>
</javax_imageio_jpeg_image_1.0>
{code}


was (Author: tilman):
{code:xml}
<?xml version="1.0" encoding="UTF-8"?><javax_imageio_1.0>
  <Chroma>
    <ColorSpaceType name="YCbCr"/>
    <NumChannels value="4"/>
  </Chroma>
  <Compression>
    <CompressionTypeName value="JPEG"/>
    <Lossless value="FALSE"/>
    <NumProgressiveScans value="1"/>
  </Compression>
  <Dimension>
    <ImageOrientation value="Normal"/>
  </Dimension>
  <Transparency>
    <Alpha value="nonpremultipled"/>
  </Transparency>
</javax_imageio_1.0>
{code}

> Wrong colors in PDF since PDFBOX-5488
> -------------------------------------
>
>                 Key: PDFBOX-5738
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5738
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Rendering
>            Reporter: Oliver Schmidtmer
>            Priority: Major
>         Attachments: Rechnung 983312924 (Carbagas).pdf
>
>
> Since the workaround for PDFBOX-5488, the attached PDF has wrong colors.
> The base issue from PDFBOX-5488 might be a difference between the reported 
> color space from the metadata-tree for the user and the raw pixel data when 
> readRaster is used, at least if I understand this correctly:
> [https://github.com/haraldk/TwelveMonkeys/issues/571]
> For the default JPEG Image Reader this is not a problem, as 
> reader.getImageMetadata throws an Exception "javax.imageio.IIOException: JFIF 
> APP0 must be first marker after SOI" and "getAdobeTransformByBruteForce" is 
> used instead of "getAdobeTransform".



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to