damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | LICENSE

commit 8fe26aa87d4f8f599a927f9caa573855ad8fa5cc
parent cc95931dec68d0a18356a284f57bca069ac791d3
Author: William Casarin <jb55@jb55.com>
Date:   Sat, 28 May 2022 08:40:37 -0700

allow avatar transparency

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Mdamus/Util/ImageCache.swift | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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))