INNER CODE UNIT · Python
config
KennethJAllen/proper-pixel-art · proper_pixel_art/cli.py:255
img, config=config, intermediate_dir=intermediate_dir, **overrides
)
width, height = pixelated.size
out_path = resolve_output_path(
Path(args.out_path), input_path, f"_{width}x{height}"
)
out_path.parent.mkdir(exist_ok=True, parents=True)
pixelated.save(out_path)
if __name__ == "__main__":
main()