Scale down image without losing quality in Swift
<p>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. </p>

<p>source code done so far is:</p>

<pre><code>    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") 
</code></pre>