0

In my app, due to payload error when sending image from ios app to watch app, I am scaling my image so that it fits into watch, but the quality on watch is blurry. How can i scale it without losing quality.

source code done so far is:

    var holding_Image: UIImage?
@IBOutlet weak var display_image: UIImageView!
 imageData = UIImagePNGRepresentation(holding_Image!)!
let img = UIImage(data: self.imageData)

let imgsize = CGSize(width: 100.0, height: 100.0)
let newimg = imageget.imageResize(img, andResizeTo: imgsize)

let newdata = UIImagePNGRepresentation(newimg!)

 self.dic1.setObject(newdata!, forKey: "image_data") 
Nishant Narola
  • 255
  • 3
  • 18

0 Answers0