mirror of
https://github.com/option8/greenscale.git
synced 2024-12-27 04:29:28 +00:00
shell script to convert .GIF to .gray
requires ImageMagick
This commit is contained in:
parent
0eb98b1ea9
commit
b528b262a0
10
greenscale.sh
Normal file
10
greenscale.sh
Normal file
@ -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
Block a user