[
https://issues.apache.org/jira/browse/PDFBOX-2587?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14263290#comment-14263290
]
John Hewson edited comment on PDFBOX-2587 at 1/2/15 10:32 PM:
--------------------------------------------------------------
This commit detects embedded sRGB profiles and uses Java's built-in CS_sRGB
ColorSpace instead. As we work in sRGB natively, this allows Java to detect
that the source and destination color spaces are the same and so avoid the
expensive color conversion operation in toRGBImageAWT(). It also has the effect
of caching all sRGB color profiles, which speeds up loadICCProfile()
dramatically for sRGB.
Rendering time for this file on my machine is down from 2:30 to 0:05.
was (Author: jahewson):
This commit detects embedded sRGB profiles and uses Java's built-in CS_sRGB
ColorSpace instead. As we work in sRGB natively, this allows Java to detect
that the source and destination color spaces are the same and so avoid the
expensive color conversion operation in toRGBImageAWT(). It also has the effect
of caching all sRGB color profiles, which speeds up loadICCProfile()
dramatically for sRGB.
Rendering time for this file on my machine is down from 2:30 to 5sec.
> PDF takes minutes to convert (sRGB)
> -----------------------------------
>
> Key: PDFBOX-2587
> URL: https://issues.apache.org/jira/browse/PDFBOX-2587
> Project: PDFBox
> Issue Type: Improvement
> Components: Rendering
> Affects Versions: 2.0.0
> Reporter: simon steiner
> Fix For: 2.0.0
>
> Attachments: RamDiskTest1.pdf
>
>
> time java -cp
> lib/jai_imageio.jar:/home/simon/pdf-box-svn/app/target/pdfbox-app-2.0.0-SNAPSHOT.jar
> org.apache.pdfbox.tools.PDFToImage RamDiskTest1.pdf
> real 2m40.462s
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)