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

Optimize image conversion in LosslessFactory

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 2.0.2, 2.0.3, 3.0.0 PDFBox
    • 2.0.3, 3.0.0 PDFBox
    • PDModel
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: