automate crop images & put it in pdf file

at first install this program which can crop any image you prefer .

 sudo apt-get install sane imagemagick 

then create file with extension sh imagine you are now in terminal and write your codes don’t forget make file excutable

cd ~/Documents
cd wordpress
convert 1.jpg -crop 620x920+5+90 photo1.jpg

first line is necessary for bashfiles the second go to documents folders from home folder the third open wordpress folder the forth cropi image widthXheight margin-top margin-left the new name

in the folder (directory)

convert *.jpg foo.pdf

to crop the image from the middle

convert image.bmp -crop 2x1@ image.jpg

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 )

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s