# Image: Return the size with actionscript?

**URL:** <https://forum.kirupa.com/t/image-return-the-size-with-actionscript/240404>\
**Category:** Uncategorized\
**Created:** [October 2, 2007, 5:52pm UTC](https://forum.kirupa.com/t/image-return-the-size-with-actionscript/240404 "2007-10-02T17:52:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![davelaruedrum](https://avatars.discourse-cdn.com/v4/letter/d/4da419/32.png) [@davelaruedrum](https://forum.kirupa.com/u/davelaruedrum)\
**Post date:** [October 2, 2007, 5:52pm UTC](https://forum.kirupa.com/t/image-return-the-size-with-actionscript/240404/1 "2007-10-02T17:52:27Z")

</div>

Is there any way actionscript can determine the size of an image (in pixels)?  
I am making a gallery and i want the thumbnails to align correct, as some of the thumbnails differ in width…  
I want to make a method (function) which takes an image (reference) and returns its width.  
Cheers,  
Dave
