mirror of
https://github.com/status-im/status-go.git
synced 2025-01-09 06:12:55 +00:00
63e58ba035
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
10 lines
207 B
Go
10 lines
207 B
Go
package images
|
|
|
|
type CroppedImage struct {
|
|
ImagePath string `json:"imagePath"`
|
|
X int `json:"x"`
|
|
Y int `json:"y"`
|
|
Width int `json:"width"`
|
|
Height int `json:"height"`
|
|
}
|