Image rotation for a Gallery type app.

I’m trying to mess with doing a gallery style app and some of the photos are landscape, the others portrait. The photos look best when they are full screen.

So lets say the phone is in a landscape mode, and I create a new display.imageRect() so it fits the vertical photo in landscape mode, I’m going to get a lot of black space, but more importantly it won’t resize when I rotate the phone.

What is the best way to do this? Should I load it in a full size, then scale it to where it fits, then setup a listener on orientation and rescale the image?

[import]uid: 19626 topic_id: 20481 reply_id: 320481[/import]

I think the idea of scaling on orientation change is solid to avoid the spacing issues and keep a clean look.

That said, I’m missing why rotation isn’t being used - I assume the image must have a very clear “top”?

Peach :slight_smile: [import]uid: 52491 topic_id: 20481 reply_id: 80313[/import]