Uploaded image for project: 'Commons Imaging'
  1. Commons Imaging
  2. IMAGING-127

API to get a single image should allow choosing which image

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • Patch Needed
    • None
    • None

    Description

      getBufferedImage() only returns the first image. There should be a way to retrieve any image by index (and by extension, an API to get the image count.)

      getBufferedImages() cannot be used for large multi-page TIFF files, because creating that many BufferedImage objects causes an OutOfMemoryError.

      (For that matter, a method to get a scaled down copy would be useful as well, as some formats can optimise that not to retrieve all the data, but also it means you can reduce the memory usage for absolutely massive images.)

      Attachments

        1. Wakarusa2015-0001.mpo
          347 kB
          Luke Quinane
        2. 2472527552.gif
          3.98 MB
          Luke Quinane
        3. june 1 part I.tif
          2.92 MB
          Trejkaz

        Activity

          People

            Unassigned Unassigned
            trejkaz Trejkaz
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: