You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Michael Doswald (JIRA)" <ji...@apache.org> on 2016/07/21 14:23:20 UTC

[jira] [Created] (PDFBOX-3433) Optimize image conversion in LosslessFactory

Michael Doswald created PDFBOX-3433:
---------------------------------------

             Summary: Optimize image conversion in LosslessFactory
                 Key: PDFBOX-3433
                 URL: https://issues.apache.org/jira/browse/PDFBOX-3433
             Project: PDFBox
          Issue Type: Improvement
          Components: PDModel
    Affects Versions: 2.0.2
         Environment: Ubuntu 14.04.4 LTS
            Reporter: Michael Doswald
            Priority: Trivial


Conversion of BufferedImage objects into PDImageXObject objects could be optimized by

* Pre-sizing the buffers
* Reading whole lines of pixels instead of pixel-by-pixel
* Prevent unnecessary copying of byte arrays





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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