# Get dimensions of a JPG?

**URL:** <https://forum.kirupa.com/t/get-dimensions-of-a-jpg/153817>\
**Category:** Uncategorized\
**Created:** [July 5, 2005, 1:08am UTC](https://forum.kirupa.com/t/get-dimensions-of-a-jpg/153817 "2005-07-05T01:08:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MaToMaStEr](https://avatars.discourse-cdn.com/v4/letter/m/df705f/32.png) [@MaToMaStEr](https://forum.kirupa.com/u/MaToMaStEr)\
**Post date:** [July 5, 2005, 1:08am UTC](https://forum.kirupa.com/t/get-dimensions-of-a-jpg/153817/1 "2005-07-05T01:08:25Z")

</div>

I want to load an image using loadMovie,… and then dynamically draw a border arround it… but i need to get the dimensions of the pic…  
I dont know why bt using  
\_root.container.img.pic.\_width  
isn’t working… I mean it is drawing the border but very small and not even close to the dimensions of the pic.  
What can I do ?

(Maybe i’m trying to get the dimensions before it’s loaded ??..)

😉 thanks
