diff --git a/dodo.py b/dodo.py index fc53544..3c4556d 100644 --- a/dodo.py +++ b/dodo.py @@ -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()