Maintain image quality in iOS Application

101 views Asked by At

I am trying to create a photo application but I am having a tough time formatting my photos so that they show clearly.

I have an imageview size 320 * 500, and an image size 3648*2736 px (Which of course I can scale down).

 imageView.contentMode=UIViewContentModeScaleAspectFit;

With imageView.contentMode=UIViewContentModeScaleAspectFit; I changed the image size to 700* 525px (IMGA) and one 500 * 325(IMGB). In this mode

  • IMGA fills the entire image view but is somehow a little distorted/not crisp
  • IMGB does not fill the entire image view Top and Bottom but the width is perfect and the image is crisp.

UIViewContentModeScaleAspectFill With UIViewContentModeScaleAspectFill the image is made for fit into the uiimageview but again distorted even if the image is scaled down vs being scaled up.

I see many apps with crisp large images . and I am hoping that someone helps me with measuring/ contentmode to get my images better. Or correct my resizing

P.S I have been looking at this link to try help but I'm still missing my goal. Difference between UIViewContentModeScaleAspectFit and UIViewContentModeScaleToFill?

0

There are 0 answers