Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-3433

Optimize image conversion in LosslessFactory

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.0.2, 2.0.3, 3.0.0 PDFBox
    • Fix Version/s: 2.0.3, 3.0.0 PDFBox
    • Component/s: PDModel
    • Environment:
      Ubuntu 14.04.4 LTS

      Description

      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

        Attachments

          Activity

            People

            • Assignee:
              tilman Tilman Hausherr
              Reporter:
              michaeldoswald Michael Doswald
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: