功能增加
This commit is contained in:
1 parent
b340fc7ad7
commit
f1993eb388
69 files changed
+2243
-162
No files matched your search
@@ -25,6 +25,13 @@ func NewEvoLink(c Config, client HTTPClient) *EvoLink {
|
||||
payload["size"] = size
|
||||
} else if width, widthOK := positiveInteger(r.Settings["width"]); widthOK {
|
||||
if height, heightOK := positiveInteger(r.Settings["height"]); heightOK {
|
||||
// A4 custom pixels ignore the resolution shortcut. Match the
|
||||
// frontend's 1K budget rather than silently requesting a 2K image.
|
||||
if width == 1680 && height == 2376 {
|
||||
width, height = 848, 1200
|
||||
} else if width == 2376 && height == 1680 {
|
||||
width, height = 1200, 848
|
||||
}
|
||||
payload["size"] = supportedRatio(width, height)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user