AlgART
AlgART-TIFF: library for TIFF support
AlgART-TIFF is a Java library providing complete read/write support of TIFF files.
Key features:
- You have full control over TIFF-file structure: ability to analyse, read or write separate IFDs.
- You can correctly read/write most variants of TIFF formats, including BigTIFF.
- You can read images with unusual bit depths like 1 bit/pixel (binary) or "strange" precision 24-bit/samples.
- You can read or write any rectangular area of image, either as
byte[]
arrays or as suitable primitive-type array (short[]
for 16 bits/sample,float[]
for floating-point etc.). - You also can read or write separate TIFF tiles (or strips) with/without decoding/encoding data.
- Concept of
TiffMap
, describing the grid of rectangular tiles, simplifies work with large images. - You can create large TIFF step-by-step: you start writing new image, then add data tile-per-tile or by a sequence of rectangular fragments, then complete writing this image.
- If you add data by rectangular areas, you may control, which tiles are already ready (filled by data), and to flush them to file; so you can create very large TIFF file without usage of large amoun of RAM.
This library is designed as a powerful alternative to the TIFF support included in the popular SCIFIO library.
Daniel Alievsky
Source code
- GIT repository: AlgART-TIFF on GitHub
Maven
Adding to your Maven module in .pom-file:
<dependencies> ... <dependency> <groupId>net.algart</groupId> <artifactId>algart-tiff</artifactId> <version>last version number</version> </dependency> ... </dependencies>