title: How to Remove Black Shadow Rectangle from Image when Applying Blur Filter in iOS?
body: <p><strong>I want to remove a BLACK shadow border around Image when applying a Blur filter</strong>. </p>
  
  <p>Please review below-attached screenshot. B<strong>lur function work correctly but want to remove a black shadow</strong>. I only want to do blur an Image. I don't want to apply any color effect with blur. Please let us know when should I missed...</p>
  
  <p><strong><em>Here I Have uploaded Image due to the low points:</em></strong></p>
  
  <p><a href="https://drive.google.com/open?id=1KtVgqRXOmIEQXh9IMyWNAlariL0hcJBN" rel="nofollow noreferrer">https://drive.google.com/open?id=1KtVgqRXOmIEQXh9IMyWNAlariL0hcJBN</a> 
  <a href="https://drive.google.com/open?id=1l2eLq7VwFPb3-SfIokW0Ijhk2jqUvjlU" rel="nofollow noreferrer">https://drive.google.com/open?id=1l2eLq7VwFPb3-SfIokW0Ijhk2jqUvjlU</a></p>
  
  <p>Here is my function to Apply Blur effects on particular Image:</p>
  
  <p><strong>Parameter :</strong></p>
  
  <p><strong>doBlurImage - Main Image want to Blur it</strong></p>
  
  <p><strong>imageBlurValue - Blur value from 0 to 50 Float</strong></p>
  
  <pre><code>func makeBlurImage(doBlurImage : UIImage, imageBlurValue :  CGFloat) -&gt; UIImage {
  
          let beginImage = CIImage(image: doBlurImage)
  
          let currentFilter = CIFilter(name: "CIGaussianBlur")
          currentFilter!.setValue(beginImage, forKey: kCIInputImageKey)
          currentFilter!.setValue(imageBlurValue, forKey: kCIInputRadiusKey)
  
          let cropFilter = CIFilter(name: "CICrop")
          cropFilter!.setValue(currentFilter!.outputImage, forKey: kCIInputImageKey)
          cropFilter!.setValue(CIVector(cgRect: beginImage!.extent), forKey: "inputRectangle")
  
          let output = cropFilter!.outputImage
  
  
          return UIImage(ciImage: output!)
  }
  </code></pre>