FOr exmaple, I need to convert this photo:
I have constructed the following command:
Code: Select all
convert -size 300x400 xc:white -draw "image SrcOver 10,10 135,185 'src.jpg'" -draw "image SrcOver 10,205 135,185 'src.jpg'" -draw "image SrcOver 155,10 135,185 'src.jpg'" -draw "image SrcOver 155,205 135,185 'src.jpg'" id_passport.jpg
As you can see, the photos are stretched.
How do I crop the photo inside one command? Something like this:
Of cource I can first do the crop command and save the intermediate photo to disk, but it is a waste of time and quality, I need everything in one single command. Thank you.