reduce max size a little
This commit is contained in:
parent
70354077f3
commit
5672db2380
|
@ -158,7 +158,7 @@ func savedonk(url string, name, desc, media string, localize bool) *Donk {
|
||||||
}
|
}
|
||||||
if strings.HasPrefix(media, "image") {
|
if strings.HasPrefix(media, "image") {
|
||||||
img, err := image.Vacuum(&buf,
|
img, err := image.Vacuum(&buf,
|
||||||
image.Params{LimitSize: 4800 * 4800, MaxWidth: 2048, MaxHeight: 2048})
|
image.Params{LimitSize: 4200 * 4200, MaxWidth: 2048, MaxHeight: 2048})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("unable to decode image: %s", err)
|
log.Printf("unable to decode image: %s", err)
|
||||||
localize = false
|
localize = false
|
||||||
|
|
Loading…
Reference in New Issue