uiimageview - Resizing Camera Image iOS -


i having resizing issues. want user take photo want resize smaller size (320, 480 or full size on iphone). mainimageview set 320,480 mode scale fill. i've tried aspect fit didn't seem fix still. here code.

- (void)imagepickercontroller:(uiimagepickercontroller *) picker  didfinishpickingmediawithinfo:(nsdictionary *)info {  uiimage *originalimage = [info objectforkey:uiimagepickercontrolleroriginalimage]; uiimage *resizedimage; cgsize newsize = cgsizemake(320.0, 480.0); resizedimage = [original imagescaledtofitsize:newsize]; // uses mgimageresizescale  mainimageview.image = newimage; 

}

the issue is scaled incorrectly (i.e. checkerboard image rectangle after transform , not square).

i believe photos taken aren't same aspect ratio of device's screen. might causing issue. original aspect ratio of photos taken , confirm 1.3:1, resizing them to.


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -