Logo
Explore Help
Sign In
status-im/status-go
2
0
Fork 0
You've already forked status-go
mirror of https://github.com/status-im/status-go.git synced 2025-01-13 08:05:40 +00:00
Code Issues Projects Releases Wiki Activity
status-go/images/cropped_image.go

10 lines
207 B
Go
Raw Normal View History

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-04-15 20:20:12 +02:00
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"`
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.0 Page: 486ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API