From 5daaec35a8c0ba46dcdc53ddc0c809d7680df91a Mon Sep 17 00:00:00 2001 From: William Casarin Date: Mon, 23 Jan 2023 10:44:42 -0800 Subject: [PATCH] Bump pfp/banner animated fize size limit to 5MiB/20MiB Changelog-Changed: Bump pfp/banner animated fize size limit to 5MiB/20MiB Closes: #384 --- damus/Views/BannerImageView.swift | 2 +- damus/Views/ProfilePicView.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/damus/Views/BannerImageView.swift b/damus/Views/BannerImageView.swift index ad17a41d..a1371f69 100644 --- a/damus/Views/BannerImageView.swift +++ b/damus/Views/BannerImageView.swift @@ -18,7 +18,7 @@ struct InnerBannerImageView: View { self.imageModel = KFImageModel( url: url, fallbackUrl: nil, - maxByteSize: 5000000, + maxByteSize: 20_971_520, // 20 MiB downsampleSize: CGSize(width: 750, height: 250) ) } diff --git a/damus/Views/ProfilePicView.swift b/damus/Views/ProfilePicView.swift index f9c5b129..09742372 100644 --- a/damus/Views/ProfilePicView.swift +++ b/damus/Views/ProfilePicView.swift @@ -46,7 +46,7 @@ struct InnerProfilePicView: View { self.imageModel = KFImageModel( url: url, fallbackUrl: fallbackUrl, - maxByteSize: 1000000, + maxByteSize: 5_242_880, // 5Mib downsampleSize: CGSize(width: 200, height: 200) ) }