why is myImage.width not returning correct dimensions for some images?

I’m using the following code to get the dimensions of an image

 local tempImg = display.newImage(imgPath)  
 local imageW = tempImg.width  
 local imageH = tempImg.height  

Works most of the time but I have a set of 3 images which are the same but their resolutions are different, and for these 3 files the image dimensions I get back are the same for all of them. They are PNG files. If I look at them in Finder and look at their dimensions they are different, however my Lua code says they are the same. They are the same image in photoshop which I’ve “Save for Web” as three different resolutions.

Any ideas?

[import]uid: 140210 topic_id: 27852 reply_id: 327852[/import]