fixed output file naming
This commit is contained in:
parent
70b3956d20
commit
5cfebaf706
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue