mirror of
https://github.com/altoiddealer/--sd-webui-ar-plusplus.git
synced 2026-03-13 09:10:23 +00:00
fix for ar < 1
This commit is contained in:
@@ -29,7 +29,7 @@ class ARButton(ToolButton):
|
||||
if self.ar > 1.0: # fix height, change width
|
||||
w = self.ar * h
|
||||
elif self.ar < 1.0: # fix width, change height
|
||||
h = self.ar * w
|
||||
h = w / self.ar
|
||||
else: # set minimum dimension to both
|
||||
min_dim = min([w, h])
|
||||
w, h = min_dim, min_dim
|
||||
|
||||
Reference in New Issue
Block a user