Apache Sanselan is a pure Java image library that allows reading and writing of various image formats as well as extracting image metadata. It was initiated in 2004 as an open source project under the Apache license. Sanselan provides a portable, correct, and simple API for working with images from byte arrays or input streams without being tied to files. It supports identifying file formats, quickly extracting image information without reading the full image, and reading/writing common formats like PNG, GIF, TIFF and BMP.