# XML Images

**URL:** <https://forum.kirupa.com/t/xml-images/88428>\
**Category:** flash\
**Created:** [April 29, 2005, 2:44am UTC](https://forum.kirupa.com/t/xml-images/88428 "2005-04-29T02:44:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Patriotxcountry](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/patriotxcountry/32/1110_2.png) [@Patriotxcountry](https://forum.kirupa.com/u/Patriotxcountry)\
**Post date:** [April 29, 2005, 2:44am UTC](https://forum.kirupa.com/t/xml-images/88428/1 "2005-04-29T02:44:38Z")

</div>

How would I go about finding the dimensions of an image using XML? I’m making an image gallery that needs the dimensions, the images will be placed in different areas depending on whether or not they are landscape or portrait orientation. ie

if(width[imageindex] \<= height[imageindex])

Currently, the program thinks both are NULL and are equal to each other because I don’t know how to fill the width/height arrays.

Any help is appreciated.
