How to retrieve picture properties (width, height, and boundary distance) online?


My clients will send source files (Adobe Illustrator, AutoCad, and CorelDraw) to our portal which the system will retrieve picture properties such as width, height, and boundary distance for further calculation.  Is there any API and methods that my programmer can write a code or script to retrieve those properties online?

Can you please advise where should I look into or which API that I can use?

Thank you in advance for any advice.