title: CIFilter shrinks resulting UIImage
body: <p>I know there is a bunch of threads about that subject, tho it reduced the transparency, but still it exists.</p>
  <p><strong>Note, the UIImageView has a green background, which we SHOULD NOT see</strong></p>
  <p>Original and filtered(guess who lol):</p>
  <p><a href="https://i.stack.imgur.com/CdsBX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CdsBX.png" alt="enter image description here" /></a></p>
  <p>Code used (partial):</p>
  <pre><code> blurFilter!.setValue(val, forKey: &quot;inputRadius&quot;)
          
          if let output = blurFilter?.valueForKey(kCIOutputImageKey) as? CIImage {
              let cgimgresult = context.createCGImage(output, fromRect: inputImage.extent)
              let result = UIImage(CGImage: cgimgresult)
              imageView?.image = result
  
  }
  </code></pre>
  <p><strong>Note : If possible, i'm looking for the most efficient method in terms of runtime</strong>
  Any Suggestions? Thanks YOU!</p>