get the height and width of an image

How can I get the height and width of an image?


Example:

Through these dimensions, I could assign a percentage to the size of the image that will appear on my screen.


Best Regards

Hi Rodrigo,

I'm assuming you want to do this server-side. I've used this extension before and the Identify action will return what you're looking for. As a bonus, the Convert action will also do the scaling you mention.