[
https://issues.apache.org/jira/browse/IMAGING-127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17426557#comment-17426557
]
Liel Fridman commented on IMAGING-127:
--------------------------------------
Hi,
Is this issue still relevant? If it is, I'd like to work on it.
Regarding the function definition, how should it look like? I thought about
something like getBufferedImageAtIndex or something like this, which will also
allow to specify the index. And maybe getBufferedImageCount to get the number
of images. However, these are just my suggestions.
Thanks
> 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
> Priority: Major
> Fix For: Patch Needed
>
> Attachments: 2472527552.gif, Wakarusa2015-0001.mpo, 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
(v8.3.4#803005)