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
#!/bin/bash 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