mirror of
https://github.com/brycedrennan/imaginAIry
synced 2024-10-31 03:20:40 +00:00
fix: word images still work without specified size (#421)
This commit is contained in:
parent
7880ee1389
commit
f88b5c1b2b
@ -144,7 +144,6 @@ def imagine_cmd(
|
||||
]
|
||||
|
||||
control_inputs = []
|
||||
resolved_width, resolved_height = named_resolutions.normalize_image_size(size)
|
||||
if control_mode:
|
||||
for i, cm in enumerate(control_mode):
|
||||
option = index_default(control_images, i, None)
|
||||
@ -160,6 +159,13 @@ def imagine_cmd(
|
||||
if control_image.startswith("http"):
|
||||
control_image = LazyLoadingImage(url=control_image)
|
||||
elif control_image.startswith("textimg="):
|
||||
(
|
||||
resolved_width,
|
||||
resolved_height,
|
||||
) = named_resolutions.normalize_image_size(
|
||||
size if size else 512
|
||||
)
|
||||
|
||||
control_image = image_from_textimg_str(
|
||||
control_image, resolved_width, resolved_height
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user