fixed output file naming

This commit is contained in:
Nihilazo 2019-08-22 21:42:44 +01:00
parent 70b3956d20
commit 5cfebaf706
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ for photo_number in range(int(runs)):
b = [bytes.fromhex(h.strip().decode()) for h in d]
image = twobpp.convert_photo(b, colors)
if arguments['-b'] != 0:
if runs != 1:
p = arguments["<path>"].split(".")
image.save(f"{p[0]}-{photo_number}.{p[1]}")
else: