Uploaded image for project: 'XMLGraphicsCommons'
  1. XMLGraphicsCommons
  2. XGC-68

[PATCH] two new image loaders for PNG

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Resolution: Fixed
    • 2.6
    • None
    • image codecs
    • None
    • Operating System: All
      Platform: All

    Description

      This patch includes two new PNG image loaders, one that uses the internal XGC PNG codec, and is very much equivalent to to the ImageIO image loader, and another that does not do the decoding of the PNG IDAT chunk and instead accepts the "raw" chunk. The image loaders are named, respectively, ImageLoaderPNG, and ImageLoaderRawPNG. For now these image loaders have a default penalty of 1000 so that the default image loader is still ImageLoaderImageIO.

      The ImageLoaderRawPNG has still some limitations on the type of PNG images that can handle. It only handles images with 8 bits per channel and without interlacing. Nevertheless, this image loader is particularly useful for large images encoded with the Paeth filter since it does not do the decoding (inverting the Paeth filter is very expensive). So besides being faster it also produces smaller output files.

      Attachments

        1. commons.patch
          67 kB
          Luis Bernardo
        2. commons.patch
          67 kB
          Luis Bernardo
        3. commons-bug53408.patch
          10 kB
          Luis Bernardo
        4. png-images.tar.gz
          9 kB
          Luis Bernardo

        Activity

          People

            general@xmlgraphics.apache.org XML Graphics Project Mailing List
            lmpmbernardo Luis Bernardo
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: