mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-06-03 08:36:12 +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) {
|
||||
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
|
||||
width = (multiplier * width).toFixed()
|
||||
height = (multiplier * height).toFixed()
|
||||
} 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
|
||||
width = (multiplier * width).toFixed()
|
||||
height = (multiplier * height).toFixed()
|
||||
|
Loading…
x
Reference in New Issue
Block a user