D3 - non-visual graphic manipulation (jpg,gif,bmp.etc)

I am using D3 client/server.  I need a NON-visual component that I can
automate some graphical functions.  

Specifically I need to be able to detect graphic format (bmp, gif,
jpg, etc), resolution, size, etc.

I also need to be able to convert from one format to another, reduce
the size and possible even decrease the resolution.

Anyone have any suggestions.  I am open to freeware, shareware or
commercial products.

Thanks
Bill

I would appreciate an e-mail response at:
bobry...@swbc.com