Things that do what I expect in isolation :
Resize and then crop
Code: Select all
$ convert input.jpg -resize '400x400>' -gravity center -crop 300x400+0+0 +repage output.jpgCode: Select all
$ convert -composite input.jpg overlay.png output.jpgCode: Select all
$ convert input.jpg -annotate +55+357 'The text I want' output.jpgCode: Select all
$ convert \( input.jpg -resize '400x400>' -gravity center -crop 300x400+0+0 +repage \) mask.png -composite output.jpgWhat I want to do is something like :
Code: Select all
$ convert \( input.jpg -resize '400x400>' -gravity center -crop 300x400+0+0 +repage \) mask.png -composite \( -annotate +55+357 'The text I want' \) output.jpg-dwkns