# Getting image size

**URL:** <https://forum.kirupa.com/t/getting-image-size/190865>\
**Category:** flash\
**Created:** [June 15, 2006, 6:06am UTC](https://forum.kirupa.com/t/getting-image-size/190865 "2006-06-15T06:06:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Armored](https://avatars.discourse-cdn.com/v4/letter/a/5f9b8f/32.png) [@Armored](https://forum.kirupa.com/u/Armored)\
**Post date:** [June 15, 2006, 6:06am UTC](https://forum.kirupa.com/t/getting-image-size/190865/1 "2006-06-15T06:06:37Z")

</div>

Hi there,

I have the following problem I can’t seem to find a solution for: I read a list of images from an external XML file and I would like to dynamically extract the size information for each image so I can resize the movieclip to just fit each image. Of course I an put the image size in the XML file as well but I’m sure there is a way to calculate it at run-time. Did somebody know how to do it?

Many thanks in advance for your help!  
Armored
