Browse Source

fix UIImage scale extension

cyberta 5 years ago
parent
commit
78dcec3af1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      deltachat-ios/Extensions/UIImage+Extension.swift

+ 1 - 1
deltachat-ios/Extensions/UIImage+Extension.swift

@@ -64,7 +64,7 @@ extension UIImage {
 
     func scaleDownImage(toMax: CGFloat) -> UIImage? {
         let rect = getResizedRectangle(toMax: Float(toMax))
-        UIGraphicsBeginImageContextWithOptions(rect.size, false, 1.0)
+        UIGraphicsBeginImageContextWithOptions(rect.size, false, 0.0)
         draw(in: rect)
         let newImage = UIGraphicsGetImageFromCurrentImageContext()
         UIGraphicsEndImageContext()