Added convert util

This commit is contained in:
Justin Ethier 2016-04-19 22:33:05 -04:00
parent 4edf38aa25
commit da7baa0fbf
2 changed files with 13 additions and 3 deletions

View file

@ -22,11 +22,11 @@ write-png.o: write-png.c write-png.h
gcc -c write-png.c gcc -c write-png.c
clean: clean:
rm -f *.o $(SCM_PROGRAM).c $(SCM_PROGRAM) $(META_FILES) $(GENC_FILES) $(COBJECTS) write-png *.png rm -f *.o $(SCM_PROGRAM).c $(SCM_PROGRAM) $(META_FILES) $(GENC_FILES) $(COBJECTS) write-png *.png *.gif
rm -rf tmp
convert: convert:
convert -resize 400x *.png ./convert.sh
convert -delay 10 -loop 0 *.png animated.gif
# A temporary directive to build the life program using GCC directly # A temporary directive to build the life program using GCC directly
# For now, need to manually add "#include "../write-png.h"" to example/life.c to get it to build # For now, need to manually add "#include "../write-png.h"" to example/life.c to get it to build

View file

@ -0,0 +1,10 @@
#!/bin/bash
rm -rf tmp
mkdir tmp
for f in `find . -name "*.png"`
do
convert -resize 100x $f tmp/$f.resize.png
done
cd tmp
convert -delay 10 -loop 0 *.png animated.gif