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 <alekratz@gmail.com>
This commit is contained in:
2024-05-30 12:26:08 -07:00
parent 87af541cc4
commit 43e99e15bb
2 changed files with 4 additions and 2 deletions

2
.gitignore vendored
View File

@@ -1,3 +1,5 @@
examples/*.png
### Python ### ### Python ###
# Byte-compiled / optimized / DLL files # Byte-compiled / optimized / DLL files
__pycache__/ __pycache__/

View File

@@ -15,8 +15,8 @@ while read infile; do
pngfile="examples/$(basename -s .in "$infile")-$hash-$matrix.png" pngfile="examples/$(basename -s .in "$infile")-$hash-$matrix.png"
echo "Generating $svgfile" echo "Generating $svgfile"
python3 -m colorhash "$infile" --output-type svg --out "$svgfile" --hash "$hash" --matrix "$matrix" python3 -m colorhash "$infile" --output-type svg --out "$svgfile" --hash "$hash" --matrix "$matrix"
#echo "Generating $pngfile" echo "Generating $pngfile"
#convert "$svgfile" "$pngfile" convert "$svgfile" "$pngfile"
done done
done done
done done