allow down to 256

This commit is contained in:
Victor Hall 2023-01-15 00:43:46 -05:00
parent 1a23c6362b
commit 2b447f3f0c
1 changed files with 2 additions and 2 deletions

View File

@ -78,8 +78,8 @@ ASPECTS_256 = [[256,256], # 65536 1:1
]
def get_aspect_buckets(resolution):
if resolution < 512:
raise ValueError("Resolution must be at least 512")
if resolution < 256:
raise ValueError("Resolution must be at least 256")
try:
rounded_resolution = int(resolution / 64) * 64
all_image_sizes = __get_all_aspects()