status-go/images
Stefan 63e58ba035 feat: add banner support for communities
Add banner image as a special `IdentityImage` beside "thumbnail" and "large"

Banner input cropped image processing

- Resize to keep in the limits of `BannerDim`
- Encode to match the file size limits define for banner
- Don't scale up. This can be done efficiently in the UI

Changes to `images` module

- Refactor `EncodeToBestSize` as `EncodeToLimits` to accept arbitrary dimensions
  and allow for custom size
- Define `DimensionLimits` for banner not to exceed 450 KB and a rough estimate
  for the ideal size
2022-05-27 14:42:14 +03:00
..
cropped_image.go feat: add banner support for communities 2022-05-27 14:42:14 +03:00
decode.go 🖼 Set any url as profile picture (useful for NFTs) (#2367) 2021-09-21 14:30:44 +05:30
decode_test.go 🖼 Set any url as profile picture (useful for NFTs) (#2367) 2021-09-21 14:30:44 +05:30
encode.go feat: add banner support for communities 2022-05-27 14:42:14 +03:00
encode_test.go images package tidy up 2020-12-17 14:10:00 +01:00
identity.go Sync profile picture 2022-04-21 19:50:31 +03:00
identity_test.go Sync profile picture 2022-04-21 19:50:31 +03:00
main.go feat: add banner support for communities 2022-05-27 14:42:14 +03:00
main_test.go feat: add banner support for communities 2022-05-27 14:42:14 +03:00
manipulation.go feat: add banner support for communities 2022-05-27 14:42:14 +03:00
manipulation_test.go feat: add banner support for communities 2022-05-27 14:42:14 +03:00
meta.go feat: add banner support for communities 2022-05-27 14:42:14 +03:00
test_data.go Sync profile picture 2022-04-21 19:50:31 +03:00