To resize a bunch of images via graphicsmagic:
ls srcdir | xargs -n1 -i@ convert srcdir/@ -resize 800x800 destdir/@