shell script to convert .GIF to .gray
requires ImageMagick
This commit is contained in:
parent
0eb98b1ea9
commit
b528b262a0
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
convert animation.gif frame%05d.gif
|
||||
|
||||
convert frame*.gif -compress none -scale 56x100% -scale 40x48\! -colorspace Gray -colors 16 -depth 8 -auto-level -evaluate divide 17 %d.gray
|
||||
|
||||
for file in *.gray
|
||||
do
|
||||
cat "$file" | python -u ../greenscale.py >> output.bin
|
||||
done
|
Loading…
Reference in New Issue