directory creation fix

This commit is contained in:
Aleksey 2023-12-01 01:06:10 +04:00
parent 5e6956c471
commit c80805983f

View File

@ -105,6 +105,7 @@ class RasterPatchwork(BasePatchwork):
output = Image.frombytes(base.mode, base.size, bytes(mask()))
output.putpalette(base.palette)
target.parent.mkdir(exist_ok=True, parents=True)
output.save(target)
output.close()