1
0

feat(backgrounds): resize images to a maximum of 4K

Resolves https://kolaente.dev/vikunja/vikunja/issues/1373#issuecomment-43491
This commit is contained in:
kolaente
2024-04-22 18:29:40 +02:00
parent 9b5ae38784
commit aec60f3591
5 changed files with 30 additions and 15 deletions

View File

@ -32,6 +32,8 @@ type Image struct {
Info interface{} `json:"info,omitempty"`
}
const MaxBackgroundImageHeight = 3840
// Provider represents something that is able to get a project of images and set one of them as background
type Provider interface {
// Search is used to either return a pre-defined project of Image or let the user search for an image