wowowowowowowo so much stuff
This commit is contained in:
parent
fe21cb61e3
commit
2f40eaf000
249 changed files with 391 additions and 20 deletions
20
art/reduce_and_extract.sh
Executable file
20
art/reduce_and_extract.sh
Executable 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue