Browse Source

fix UIImage scale extension

cyberta 5 năm trước cách đây
mục cha
commit
78dcec3af1
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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()