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 2017/07/07 16:05:01 UTC

[jira] [Created] (PDFBOX-3858) Optimize 1 component DeviceN colorspace

Tilman Hausherr created PDFBOX-3858:
---------------------------------------

             Summary: Optimize 1 component DeviceN colorspace
                 Key: PDFBOX-3858
                 URL: https://issues.apache.org/jira/browse/PDFBOX-3858
             Project: PDFBox
          Issue Type: Bug
          Components: PDModel, Rendering
    Affects Versions: 2.0.6
            Reporter: Tilman Hausherr
            Assignee: Tilman Hausherr
             Fix For: 2.0.7, 3.0.0
         Attachments: DeviceNcs.png

I received a file (confidential) that has an image with a 1 component DeviceN colorspace that maps (through a long type 4 function) to a CMYK colorspace. Rendering takes over 20 minutes. The reason is that  for each pixel, first the type 4 (PostScript) function must be calculated, then the CMYK value must be converted to RGB.

Solution: cache the inputs and the results when the DeviceN colorspace has only 1 component. Rendering time goes to a few seconds.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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