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
decode_test.go
encode.go feat: add banner support for communities 2022-05-27 14:42:14 +03:00
encode_test.go
identity.go
identity_test.go
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