JetThoughts

Change size of images shell script

May 17th 2010

I had a issue: Find all images in directory and change size to “150x200”. So lets start.

  1. Find all images find .
  2. Convert size of image: convert -geometry ‘150x200’ image.gif image.gif
    for i in $(find .)
    do
      convert -geometry "150x200" $i $i
    done

If you want get only image size use: identify image.png

blog comments powered by Disqus

Powered by Rackspace Cloud Computing