wowowowowowowo so much stuff

This commit is contained in:
0x81c 2015-03-14 05:36:02 -04:00
parent fe21cb61e3
commit 2f40eaf000
249 changed files with 391 additions and 20 deletions

20
art/reduce_and_extract.sh Executable file
View file

@ -0,0 +1,20 @@
mkdir -p processed
for f in *.png
do
NAME=`echo "$f" | cut -d'.' -f1`
echo "mapping $f to palette..."
convert $f +dither -map ../palette "processed/${NAME}_reduced.png"
TARGET="processed/${NAME}_reduced.png"
echo "extracting colors from $f..."
convert $TARGET -channel R -separate "processed/${NAME}_r.png"
convert $TARGET -channel G -separate "processed/${NAME}_g.png"
convert $TARGET -channel B -separate "processed/${NAME}_b.png"
echo "done!!!"
done