diff --git a/greenscale.sh b/greenscale.sh index 161e280..f43e7f2 100644 --- a/greenscale.sh +++ b/greenscale.sh @@ -1,8 +1,10 @@ #!/bin/bash -convert animation.gif frame%02d.gif +convert animation.gif -coalesce frame%02d.gif + +convert frame*.gif -resize 640x480 -gravity center -background white -extent 640x480 -compress none -scale 56x100% -resize 40x48\! \ +-colorspace Gray -colors 16 -depth 8 -auto-level -evaluate divide 17 %02d.gray -convert frame*.gif -compress none -scale 56x100% -scale 40x48\! -colorspace Gray -colors 16 -depth 8 -auto-level -evaluate divide 17 %02d.gray for file in *.gray do