[
https://issues.apache.org/jira/browse/PDFBOX-5615?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17728533#comment-17728533
]
Tilman Hausherr edited comment on PDFBOX-5615 at 6/3/23 1:17 PM:
-----------------------------------------------------------------
That's the inkblot effect in JPEG2000 images you get with the official JAI.
Make sure you have the latest jpeg2000 decoder in your class path.
https://github.com/jai-imageio/jai-imageio-jpeg2000/
<dependency>
<groupId>com.github.jai-imageio</groupId>
<artifactId>jai-imageio-core</artifactId>
<version>1.4.0</version>
</dependency>
<dependency>
<groupId>com.github.jai-imageio</groupId>
<artifactId>jai-imageio-jpeg2000</artifactId>
<version>1.4.0</version>
</dependency>
was (Author: tilman):
This seems to be the inkblot effect in JPEG2000 images. Make sure you have the
latest jpeg2000 decoder in your class path.
https://github.com/jai-imageio/jai-imageio-jpeg2000/
<dependency>
<groupId>com.github.jai-imageio</groupId>
<artifactId>jai-imageio-core</artifactId>
<version>1.4.0</version>
</dependency>
<dependency>
<groupId>com.github.jai-imageio</groupId>
<artifactId>jai-imageio-jpeg2000</artifactId>
<version>1.4.0</version>
</dependency>
> Color drastically change when performing document to image conversion
> ---------------------------------------------------------------------
>
> Key: PDFBOX-5615
> URL: https://issues.apache.org/jira/browse/PDFBOX-5615
> Project: PDFBox
> Issue Type: Bug
> Components: Rendering
> Affects Versions: 2.0.27
> Reporter: Jill Xu
> Priority: Major
> Attachments: original_doc-1.pdf, output_image.jpeg
>
>
> Hi team,
> We noticed drastic color change after performing a PDF to image conversion.
> The API we used is something like:
> {code:java}
> PDFDocument document = PDDocument.load(xxx);
> PDFRenderer renderer = new PDFRenderer(document);
> renderer.renderImageWithDPI(0, dpi, ImageType.RGB); {code}
> The original pdf and the processed output image is attached to the ticket.
> The pdfbox version we are using is 2.0.27
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]