Reputation: 21
If i test convert at single command: convert -background #FFFFFD -bordercolor #327640 -border 3 -bordercolor #3CDE1B -border 3 -bordercolor #098606 -border 3 -fill #1069CF -font Roboto -size 1200x800 -stroke #AD2EC2 -strokewidth 2 -gravity center caption:'1. image text' 1image.jpg
that create the image. But not with the 5 images, with parenthesises:
convert [ -background #FFFFFD -bordercolor #327640 -border 3 -bordercolor #3CDE1B -border 3 -bordercolor #098606 -border 3 -fill #1069CF -font Roboto -size 1200x800 -stroke #AD2EC2 -strokewidth 2 -gravity center caption:'1. image text' ] 1image.jpg [ -background #FFFFFD -bordercolor #327640 -border 3 -bordercolor #3CDE1B -border 3 -bordercolor #098606 -border 3 -fill #1069CF -font Roboto -size 1200x800 -stroke #AD2EC2 -strokewidth 2 -gravity center caption:'2. image text' 2image.jpg ] [ -background #FFFFFD -bordercolor #327640 -border 3 -bordercolor #3CDE1B -border 3 -bordercolor #098606 -border 3 -fill #1069CF -font Roboto -size 1200x800 -stroke #AD2EC2 -strokewidth 2 -gravity center caption:'3 image Text' 3image.jpg ] [ -background #FFFFFD -bordercolor #327640 -border 3 -bordercolor #3CDE1B -border 3 -bordercolor #098606 -border 3 -fill #1069CF -font Roboto -size 1200x800 -stroke #AD2EC2 -strokewidth 2 -gravity center caption:'4 image text' 4image.jpg ] [ -background #FFFFFD -bordercolor #327640 -border 3 -bordercolor #3CDE1B -border 3 -bordercolor #098606 -border 3 -fill #1069CF -font Roboto -size 1200x800 -stroke #AD2EC2 -strokewidth 2 -gravity center caption:'5 image text' ] 5image.jpg
what i have to change?
Thank you for your reading and your time.
The output from my command line, if i test the command with the 5 images:
convert: unable to open image [': No such file or directory @ error/blob.c/OpenBlob/2924. convert: no decode delegate for this image format
' @ error/constitute.c/ReadImage/575.
convert: unable to open image ]': No such file or directory @ error/blob.c/OpenBlob/2924. convert: unable to open image
]': No such file or directory @ error/blob.c/OpenBlob/2924.
convert: no decode delegate for this image format ' @ error/constitute.c/ReadImage/575. convert: unable to open image
1image.jpg': No such file or directory @ error/blob.c/OpenBlob/2924.
convert: unable to open image 1image.jpg': No such file or directory @ error/blob.c/OpenBlob/2924. convert: no decode delegate for this image format
' @ error/constitute.c/ReadImage/575.
convert: unable to open image 2image.jpg': No such file or directory @ error/blob.c/OpenBlob/2924. convert: unable to open image
2image.jpg': No such file or directory @ error/blob.c/OpenBlob/2924.
convert: unable to open image ]': No such file or directory @ error/blob.c/OpenBlob/2924. convert: unable to open image
]': No such file or directory @ error/blob.c/OpenBlob/2924.
convert: no decode delegate for this image format ' @ error/constitute.c/ReadImage/575. convert: unable to open image
[': No such file or directory @ error/blob.c/OpenBlob/2924.
convert: no decode delegate for this image format ' @ error/constitute.c/ReadImage/575. convert: unable to open image
3image.jpg': No such file or directory @ error/blob.c/OpenBlob/2924.
convert: unable to open image 3image.jpg': No such file or directory @ error/blob.c/OpenBlob/2924. convert: unable to open image
]': No such file or directory @ error/blob.c/OpenBlob/2924.
convert: unable to open image ]': No such file or directory @ error/blob.c/OpenBlob/2924. convert: no decode delegate for this image format
' @ error/constitute.c/ReadImage/575.
convert: unable to open image [': No such file or directory @ error/blob.c/OpenBlob/2924. convert: no decode delegate for this image format
' @ error/constitute.c/ReadImage/575.
convert: unable to open image 4image.jpg': No such file or directory @ error/blob.c/OpenBlob/2924. convert: unable to open image
4image.jpg': No such file or directory @ error/blob.c/OpenBlob/2924.
convert: unable to open image ]': No such file or directory @ error/blob.c/OpenBlob/2924. convert: unable to open image
]': No such file or directory @ error/blob.c/OpenBlob/2924.
convert: no decode delegate for this image format ' @ error/constitute.c/ReadImage/575. convert: unable to open image
[': No such file or directory @ error/blob.c/OpenBlob/2924.
convert: no decode delegate for this image format ' @ error/constitute.c/ReadImage/575. convert: unable to open image
]': No such file or directory @ error/blob.c/OpenBlob/2924.
convert: unable to open image ]': No such file or directory @ error/blob.c/OpenBlob/2924. convert: no decode delegate for this image format
' @ error/constitute.c/ReadImage/575.
I have't a idea, what i have to do, and what i try to do.
Do you have a idea for me?
Thank you for your time, and reading
Upvotes: 2
Views: 80
Reputation: 53071
Here is the correct syntax for your command. Create the text image first, then add the border. Also use -background XXX for caption:, not -fill XXX. Use the {} button to format the command in the window.
convert -background "#1069CF" -size 1200x800 -font Arial -gravity center caption:'1. image text' -bordercolor "#327640" -border 3 image1.jpg
To make multiple images in the same command, use -write outfileN for each command and use null: at the end
convert \
\( -background "#1069CF" -size 1200x800 -font Arial -gravity center caption:'1. image text' \
-bordercolor "#327640" -border 3 -write image1.jpg \) \
\( -background "#1069CF" -size 1200x800 -font Arial -gravity center caption:'1. image text' \
-bordercolor "#327640" -border 3 -write image2.jpg \) \
\( -background "#1069CF" -size 1200x800 -font Arial -gravity center caption:'1. image text' \
-bordercolor "#327640" -border 3 -write image3.jpg \) \
null:
What is your OS? On some Unix systems, you need to quote around the hex colors. On Windows, the parentheses should not be escaped with \ and the end of line escape is a ^ rather than the .
Upvotes: 2