Page 1 of 1

Image aspect ratio stretching on different devices

Posted: Thu Oct 29, 2015 3:20 pm
by MrCrussell
Hi,

Quick question.. The app I'm writing displays a dynamic image on a card. The actual image size is 290 x 290px and the image area on the card is the same size.

On an iPhone4 the image looks fine, but as soon as I look at it on an iPhone5+ the image stretches vertically slightly and looks more like a lozenge then a circle.

Is there a way to force the image to display correctly, or do I need to do some mathematical chicanery to get it to look right?

TIA

Chris

Re: Image aspect ratio stretching on different devices

Posted: Fri Oct 30, 2015 2:36 am
by quailcreek
Hi Chris,
Are you using fullScreenMode?

Re: Image aspect ratio stretching on different devices

Posted: Fri Oct 30, 2015 9:57 am
by MrCrussell
Hey quailcreek,

Yup, I'm using fullScreen set to "exact fit".

Re: Image aspect ratio stretching on different devices

Posted: Fri Oct 30, 2015 2:02 pm
by Klaus
MrCrussell wrote:I'm using fullScreen set to "exact fit".
Doesn't that answer your question? What do you exspect?

This feature will force your iPhone 4 320*480 pixel stack into the iPhone 5 320*568 pixel rect?
This MUST result in a slight unproporional distortion of the stack and all of its content? :D