Advertisement
mightyroot

Imagemagic resize photo

Jun 27th, 2012
336
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.33 KB | None | 0 0
  1. $ for i in $( ls *.jpg); do convert -resize 50% $i re_$i; done
  2. The command above will resize all images to half of its original size. New resized images will be saved with a prefix "re_". It is also possible to resize all images and at the same time convert them to gif format:
  3. $ for i in $( ls *.jpg); do convert -resize 50% $i $i.gif; done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement