image issue

I have an issue going from Windows to Mac I was hoping someone can help me out with.

All of the images I create in photoshop on Windows do not render correctly in the simulator on Mac.

I have narrowed it down to the size of the image… Or what the simulator says the size is.

I have a test.png file 680x1000

If I run the following code:

local image = display.newImage(“test.png”)
print(image.width)
print(image.height)

Output from simulator on Windows:
680
1000

Output from simulator on Mac:
512
384

The config.lua does not have any effect on this output. Changing width and height for content change the image size on screen but the output remains the same. I would expect that since I assume image.width/height returns the actual size and not the scaled size.
The full app works great on the Windows simulator. When run on Mac simulator all the images are to small. I am guessing it is the size discrepancy between the two platforms. Also, if I open the image on Mac using any image editor it shows the correct size.
Any help would be greatly appreciated.

[import]uid: 117422 topic_id: 23586 reply_id: 323586[/import]

I found my issue. Image Autoscaling was causing the problem. If I set isFullResolution=true when calling newImage everything is fine.

Now I’m wondering if my images are to big. I am using images of 1000x800 for the background. Does anyone think that will be a problem? [import]uid: 117422 topic_id: 23586 reply_id: 94597[/import]

What device/s is this for?

The larger the image the more texture memory is used, so keep an eye on that. If it’s creeping up there then you might want to consider splitting the image into a few tiles or the like.

Peach :slight_smile: [import]uid: 52491 topic_id: 23586 reply_id: 94711[/import]