in reply to Is GD for PHP anything to with our own dear GD?
if you could get your host to install Image::Info, you could use that - it's much smaller and lighter than ImageMagick, and will do what you require.
-- Dan