Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4C63410D10 for ; Mon, 29 Dec 2014 10:59:15 +0000 (UTC) Received: (qmail 57820 invoked by uid 500); 29 Dec 2014 10:59:15 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 57738 invoked by uid 500); 29 Dec 2014 10:59:15 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 57718 invoked by uid 99); 29 Dec 2014 10:59:15 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Dec 2014 10:59:15 +0000 Date: Mon, 29 Dec 2014 10:59:15 +0000 (UTC) From: "Benedikt Ritter (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (IMAGING-127) API to get a single image should allow choosing which image MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/IMAGING-127?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Benedikt Ritter updated IMAGING-127: ------------------------------------ Fix Version/s: Patch Needed > API to get a single image should allow choosing which image > ----------------------------------------------------------- > > Key: IMAGING-127 > URL: https://issues.apache.org/jira/browse/IMAGING-127 > Project: Commons Imaging > Issue Type: Improvement > Reporter: Trejkaz > Fix For: Patch Needed > > Attachments: june 1 part I.tif > > > 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.) -- This message was sent by Atlassian JIRA (v6.3.4#6332)