commit 5daaec35a8c0ba46dcdc53ddc0c809d7680df91a
parent abfbc8c9aa4a38dd4b08b1369f06a504d978435e
Author: William Casarin <jb55@jb55.com>
Date: Mon, 23 Jan 2023 10:44:42 -0800
Bump pfp/banner animated fize size limit to 5MiB/20MiB
Changelog-Changed: Bump pfp/banner animated fize size limit to 5MiB/20MiB
Closes: #384
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git 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
@@ -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)
)
}