Page 1 of 1

Multiple labels in one command

Posted: 2016-12-20T08:17:27-07:00
by utbl
How can I create multiple label commands (with specific option) into one convert command.

For example these commands into one:

Code: Select all

convert -size 500x500 -font Helvetiva -pointsize 20 label:"test1" test.png
convert -size 500x500 -font Helvetiva -pointsize 20 label:"test2" test.png

Re: Multiple labels in one command

Posted: 2016-12-20T09:40:56-07:00
by GeeMack
utbl wrote:How can I create multiple label commands (with specific option) into one convert command.
A command like this will create two labels, one with each of your "test1" and "test2" words, with output files named "test-0.png" and test-1.png"...

Code: Select all

convert -size 500x500 -font Helvetiva -pointsize 20 label:"test1" label:"test2" test.png
A command like this will create the same two labels, but they'll be named "onetest.png" and "anothertest.png"...

Code: Select all

convert -size 500x500 -font Helvetiva -pointsize 20 ^
   label:"test1" -write onetest.png +delete ^
   label:"test2" anothertest.png
The above is for DOS. for Unix replace the ^ with \