From 8fe26aa87d4f8f599a927f9caa573855ad8fa5cc Mon Sep 17 00:00:00 2001 From: William Casarin Date: Sat, 28 May 2022 08:40:37 -0700 Subject: [PATCH] allow avatar transparency Signed-off-by: William Casarin --- damus/Util/ImageCache.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/damus/Util/ImageCache.swift b/damus/Util/ImageCache.swift index dabbc5c..6f38262 100644 --- a/damus/Util/ImageCache.swift +++ b/damus/Util/ImageCache.swift @@ -17,7 +17,7 @@ extension UIImage { let colorSpace = CGColorSpaceCreateDeviceRGB() //let cgsize = CGSize(width: size, height: size) - let context = CGContext(data: nil, width: Int(pix_size), height: Int(pix_size), bitsPerComponent: 8, bytesPerRow: cgImage.bytesPerRow, space: colorSpace, bitmapInfo: CGImageAlphaInfo.noneSkipFirst.rawValue) + let context = CGContext(data: nil, width: Int(pix_size), height: Int(pix_size), bitsPerComponent: 8, bytesPerRow: cgImage.bytesPerRow, space: colorSpace, bitmapInfo: cgImage.bitmapInfo.rawValue) //UIGraphicsBeginImageContextWithOptions(cgsize, true, 0) context?.draw(cgImage, in: CGRect(x: 0, y: 0, width: pix_size, height: pix_size))