Skip to content

eggplants/xyz2png

Repository files navigation

xyz2png

PyPI version Maintainability pre-commit.ci status

ghcr latest ghcr size

Convert .xyz file into .png file

Reimplementation vn-tools/xyz2png in Python3.

Install

pip install xyz2png
# OR
pipx install xyz2png

Run

xyz2png <target dir> <output dir>

Example

$ ls FooBar/GameFiles/Picture/*.xyz
FooBar/GameFiles/Picture/foo1.xyz    FooBar/GameFiles/Picture/bar1.xyz

$ xyz2png FooBar/GameFiles/Picture output_images
Done.

$ ls output_images
foo1.png    bar1.png

Help

$ xyz2png -h
usage: xyz2png [-h] [-o] [-V] IN OUT

Convert .xyz file into .png file.

positional arguments:
  IN               directory of xyz files
  OUT              directory to output png files

options:
  -h, --help       show this help message and exit
  -o, --overwrite  overwrite if png file exists
  -V, --version    show program's version number and exit