How to merge actions on one call?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
alibek
Posts: 3
Joined: 2019-01-30T23:03:35-07:00
Authentication code: 1152

How to merge actions on one call?

Post 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?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: How to merge actions on one call?

Post 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.
snibgo's IM pages: im.snibgo.com
Post Reply