From 43e99e15bb43b9e44a9bc66bdb8157aebf6e9d3b Mon Sep 17 00:00:00 2001 From: Alek Ratzloff Date: Thu, 30 May 2024 12:26:08 -0700 Subject: [PATCH] Add png generation back in (using the imagemagick convert tool), add png files to gitignore This is so we aren't committing binary data to the git repository if that data may get updated in the future because I decide to make changes to algorithms, palettes, etc. It's still nice to get the png files generated so they can stay. Signed-off-by: Alek Ratzloff --- .gitignore | 2 ++ tools/genexamples.sh | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index ffb5112..1c237a2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ +examples/*.png + ### Python ### # Byte-compiled / optimized / DLL files __pycache__/ diff --git a/tools/genexamples.sh b/tools/genexamples.sh index 3934367..1e57cbd 100755 --- a/tools/genexamples.sh +++ b/tools/genexamples.sh @@ -15,8 +15,8 @@ while read infile; do pngfile="examples/$(basename -s .in "$infile")-$hash-$matrix.png" echo "Generating $svgfile" python3 -m colorhash "$infile" --output-type svg --out "$svgfile" --hash "$hash" --matrix "$matrix" - #echo "Generating $pngfile" - #convert "$svgfile" "$pngfile" + echo "Generating $pngfile" + convert "$svgfile" "$pngfile" done done done