How to get size (width and height) from image attached to document

I would like to get size of image attached to document and was looking for the best solution.

Does anybody know good approach to get that information?

Thanks.

Subject: Use DXL to grab the document, and base64 decode the image from DXL. Extract to disk and check the image sizes from there

DXL is extremely powerful and you can do wonders with it! You might want to check out a series of articles regarding DXL and image processing on my blog.