I have a question about displaying properties of an image
 
The situation is this :
I have a folder called images, where users can upload pics.
when the pic gets uploaded, the id also gets stored into a MySQL database
 
when a certain page is called it retrieves the correct image from the folder by connecting the ImageID from the database to the id in the folder
So far so good, this works fine.
 
but when I retrieve the image from the folder I also need the width and the height from the image, and that's the part I do not seem to get right
this is the code I tried :
 
( Photo is the DataBase entry )
 
<dtml-call "REQUEST.set('photo',Photo)">

<dtml-with expr="inbox.photos.objectValues()">
<dtml-call "REQUEST.set('id',id)">
<dtml-call "REQUEST.set('width',width)">
<dtml-call "REQUEST.set('height',height)">

<dtml-if "photo  == id"> <dtml-var id> <dtml-var width>  <dtml-var height> <dtml-else> No Pic  </dtml-if>

</dtml-with>
 
I hope someone can help me out with this
Thanx in advance,
 
Menno