Page 1 of 1

How to merge actions on one call?

Posted: 2019-01-30T23:46:56-07:00
by alibek
Hello.
I have three commands:

Code: Select all

convert "$DST" -size ${MW2}x${MH} -fill black -draw "rectangle ${MX0},0 ${MX2},${MH}" "$DST"
convert "$SRC" -crop ${MW1}x${MH}+${MX0}+0 "$TMP/crop.jpg"
composite -geometry +${MX0}+0 "$TMP/crop.jpg" "$DST" "$DST"
Can these commands be combined into one?
Or at least the last two commands combined into one?

Re: How to merge actions on one call?

Posted: 2019-01-31T03:27:47-07:00
by snibgo
See the recent thread https://www.imagemagick.org/discourse-s ... =1&t=35421

In your first command, "-size" has no effect, and I suggest you remove it.