Crop and resize image

Cut out a certain part from every image in the directory and additionally scale it to half of its size, using ImageMagick:

  • mkdir -p output; for i in *.jpg; do newname=output/_$i; echo “$i -> $newname”; convert $i -crop 600×700+650+50 -resize 50% $newname; done; echo “Done”
Advertisements


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s