Thursday, 24 May 2012

Script to CROP images

You only need four parameters i.e 
height, width,starting point(x,y) ,here x,y are taken from the center of the image

 
cd files
for file in *.png;
do echo $file;
convert $file -gravity center -crop 300x450+0+0  ${file%.*}.png

Used this script to crop images for Certificate making :)

 

No comments:

Post a Comment