Hi!
My problem as as the above topic. I have the exact same image. When loaded in media.selectPhoto through image gallery, it scales perfectly. When i take the exact same image through media.capturePhoto, the scaling is deformed. I put them through the same listener so they should work the same. I have attached the two different scaling image . Is this due to some config issue? Please advise on this. Thanks!
Code as follows:
if(myData.uploadMode == 1) then if media.hasSource( media.Camera ) then media.capturePhoto( { listener = onComplete} ) else native.showAlert( "Corona", "This device does not have a camera.", { "OK" } ) end else if media.hasSource( media.PhotoLibrary ) then media.selectPhoto( { mediaSource = media.PhotoLibrary, listener = onComplete } ) else native.showAlert( "Corona", "This device does not have a photo library.", { "OK" } ) end end