Today a colleague asked whether was possible to get the color depth of an image in Java: while blathering about AWT inadequacies and headless Java (Oracle Enterprise Manager, anyone?) I stumbled upon ImageInfo. From the page:
The following file formats are currently supported: JPEG, PNG, GIF, BMP, PCX, IFF, RAS, PBM, PGM, PPM, PSD and SWF [...]. ImageInfo can recognize these formats, and in addition determine image width, height and color depth (bits per pixel).A nice solution for our problem, and it requires only Java 1.1.