mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-06-05 09:27:17 +02:00
Remove inpaint size limit
With the limit removed, inpaint can work with image sizes larger than 768 pixels.
This commit is contained in:
parent
49488ded01
commit
8cd6ca6269
@ -559,12 +559,12 @@ class ImageEditor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (width > height) {
|
if (width > height) {
|
||||||
var max_size = Math.min(parseInt(window.innerWidth * 0.9), width, 768)
|
var max_size = Math.min(parseInt(window.innerWidth * 0.9), width)
|
||||||
var multiplier = max_size / width
|
var multiplier = max_size / width
|
||||||
width = (multiplier * width).toFixed()
|
width = (multiplier * width).toFixed()
|
||||||
height = (multiplier * height).toFixed()
|
height = (multiplier * height).toFixed()
|
||||||
} else {
|
} else {
|
||||||
var max_size = Math.min(parseInt(window.innerHeight * 0.9), height, 768)
|
var max_size = Math.min(parseInt(window.innerHeight * 0.9), height)
|
||||||
var multiplier = max_size / height
|
var multiplier = max_size / height
|
||||||
width = (multiplier * width).toFixed()
|
width = (multiplier * width).toFixed()
|
||||||
height = (multiplier * height).toFixed()
|
height = (multiplier * height).toFixed()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user