# Detecting \_width / \_height of loaded image

**URL:** <https://forum.kirupa.com/t/detecting--width--height-of-loaded-image/194097>\
**Category:** flash\
**Created:** [July 20, 2006, 2:40pm UTC](https://forum.kirupa.com/t/detecting--width--height-of-loaded-image/194097 "2006-07-20T14:40:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![forwardtrends](https://avatars.discourse-cdn.com/v4/letter/f/cab0a1/32.png) [@forwardtrends](https://forum.kirupa.com/u/forwardtrends)\
**Post date:** [July 20, 2006, 2:40pm UTC](https://forum.kirupa.com/t/detecting--width--height-of-loaded-image/194097/1 "2006-07-20T14:40:14Z")

</div>

MX04

Is there a way to detect the \_height and \_width of a incoming image?

I’m going through a loop, duplicating movie clips with mask, loading an image, and squeezing it down to 100 x 100 for thumbnails. The client wants the thumbnails to be actual proportions but I used so many tweens and setup functions based on the 100 pixel width it’s going to be a nightmare.

Thanks!

Aaron
