Browse Source

Bump pfp/banner animated fize size limit to 5MiB/20MiB

Changelog-Changed: Bump pfp/banner animated fize size limit to 5MiB/20MiB
bump-animated-sizes
William Casarin 2 years ago
parent
commit
65f99ad118
  1. 2
      damus/Views/BannerImageView.swift
  2. 2
      damus/Views/ProfilePicView.swift

2
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)
)
}

2
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)
)
}

Loading…
Cancel
Save