Chaining commands woes
Posted: 2013-12-02T08:38:50-07:00
I can't figure out how to properly chain commands in ImageMagick
Things that do what I expect in isolation :
Resize and then crop
Apply overlay
Annotate
I've had limited success in combining these together for instance :
Resizes the image and crops it, then applies my overlay. However regardless of what I try I can't then get the annotation to appear.
What I want to do is something like :
Any help would be much appreciated. Thanks
-dwkns
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.jpg
Code: Select all
$ convert -composite input.jpg overlay.png output.jpg
Code: Select all
$ convert input.jpg -annotate +55+357 'The text I want' output.jpg
Code: Select all
$ convert \( input.jpg -resize '400x400>' -gravity center -crop 300x400+0+0 +repage \) mask.png -composite output.jpg
What 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