image-js / tiff

TIFF image decoder written entirely in JavaScript
MIT License
190 stars 17 forks source link

Add option 'pages' that list #46

Closed lpatiny closed 9 months ago

lpatiny commented 9 months ago

By default we would parse all the images but we could as well have an option that is an array of pages to retrieve.

This would allow to get only the first images of a stack for example.

opatiny commented 9 months ago

What we want is to be able to pass an array of number as a parameter, which specifies the pages that we want to decode.

opatiny commented 9 months ago

Are you sure you want me to implement this feature? There is already the firstImage option, which allows to decode only the first image of the stack.