Introduction

JImage-Analyst is a JAVA(TM) based library for extracting meta information from various image file formats.

Features

JImage-Analyst comes with the following features:

  • Supported Image formats: BMP, CUR, GIF, ICO, IFF, JPEG, PCX, PNG, PNM (PBM, PGM, PPM), PSD, RAS, SWF, TGA, TIFF, XCF
  • The following information are available:
    • The format
    • The mime type
    • Dimension (width / height)
    • Physical width and height (in DPI and inch)
    • Bits per pixel
    • Whether the image is progressive
    • Comments from the image (such as in JPEG files)
    • Number of images (such as with animated GIFs)
  • High speed and low memory consumption
  • No dependencies on 3rd party libraries
  • No dependencies on AWT classes
  • An architecture that allows to add further formats very easily

Examples

File file = new File("test.gif");

JImageAnalyst analyst = JImageAnalystFactory.getDefaultInstance();
ImageInfo imageInfo = analyst.analyze(file);

System.out.println("Format:       " + imageInfo.getFormat());
System.out.println("MIME-Type:    " + imageInfo.getMimeType());
System.out.println("Width:        " + imageInfo.getWidth());
System.out.println("Height:       " + imageInfo.getHeight());
System.out.println("BitsPerPixel: " + imageInfo.getBitsPerPixel());

// ... more information is available in imageInfo ...

Download

You can download JImage-Analyst at SourceForge.

Who did it?

JImage-Analyst is written by Oliver J. Siegmar. Many of the image detection algorithms are written by Marco Schmidt for his ImageInfo library.