Apache Commons Imaging, previously known as Apache Commons Sanselan, is a library that reads and writes a variety of image formats, including fast parsing of image info (size, color space, ICC profile, etc.) and metadata.
This library is pure Java. Compared to typical image I/O libraries in native code, it's more portable, and should be more reliable and more secure against corrupt/malicious images, yet still performs reasonably well. It's easier to use than ImageIO/JAI/java.awt.Toolkit (Sun/Java's image support), supports more formats (and supports them more correctly). It also provides easy access to metadata.
Imaging was working and was used by a number of projects in production even before version 1.0.
This project is Open Source; free as in freedom and free as in beer. It is available under the ASF (Apache) License. This is a non-viral Open Source license.
The JavaDoc API documents are available online:
There is currently no stable release of Imaging. You may:
For pulling the latest snapshot via maven you need to add the Apache snapshot repository to your pom.xml:
<repository> <id>apache.snapshots</id> <name>Apache Development Snapshot Repository</name> <url>https://repository.apache.org/content/repositories/snapshots/</url> <releases> <enabled>false</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </repository>
<dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-imaging</artifactId> <version>1.0-SNAPSHOT</version> <dependency>
The last stable release of Sanselan, before it was renamed to Imaging, was 0.97 You may:
Alternatively you can pull it from the central Maven repositories:
<dependency> <groupId>org.apache.sanselan</groupId> <artifactId>sanselan</artifactId> <version>0.97-incubator</version> <dependency>
The commons mailing lists act as the main support forum. The user list is suitable for most library usage queries. The dev list is intended for the development discussion. Please remember that the lists are shared between all commons components, so prefix your email by [imaging].
Bug reports and enhancements are also welcomed via the JIRA issue tracker. Please read the instructions carefully.