The split lines are handled by the command line shell. Bash is typically what is used today.
I am not exactly certain what setting is applied to what operator, as you are not clear.
Is it any wonder that IM doesn't know?
For debugging/programming hints of larger command scripts see..
Complex Image Processing and Debugging
http://www.imagemagick.org/Usage/basics/#complex
position text string immediatly before another text string
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: position text string immediatly before another text stri
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/
Re: position text string immediatly before another text stri
I've made some progress in creating a mask, but I'm having trouble changing background to a gradient.
I haven't bothered deleting or swapping any images so I can see the changes. What I want to do is make the background layer a gradient. So far I've only managed to make it a solid colour.
Any help would be great!
Code: Select all
"\( -gravity SouthEast "\( -pointsize 30 -background black -fill white -font \"$below_font\" \"label:$content\" -splice 0x8 \) ".
"\( +clone +matte -fill Sienna -colorize 100% \) ".
" \( -clone 1,-1 -compose Multiply -composite \) ".
" \( +clone -transparent black \) ".
"+append \) " .
Any help would be great!
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: position text string immediatly before another text stri
This code is very hard to understand. Can you create multiple step to show us what you are doing with the input image, so that we can try ourselves to see? Show the full commands. Once you get it done with separate commands, we can then help put it all together into one command.
Re: position text string immediatly before another text stri
Looking back it doesn't make much sense. I'll post an example of the image I want to achieve
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: position text string immediatly before another text stri
Please provide the input and output image and perhaps pseudocode or a functional description of the steps you use to create your result in whatever other system you are using to make the example.eekaleek wrote:Looking back it doesn't make much sense. I'll post an example of the image I want to achieve
Re: position text string immediatly before another text stri
Ok here we go:
$im
I take the above image and place the next image over it with a gravity of south west
$bottom_left_image
This creates this:
I then add some text to the bottom left. This is the commands I'm using up to now:
"convert \"$im\" ".
"\( -gravity SouthWest \"$bottom_left_image\" ".
"\( -pointsize $bottom_left_font_size -background transparent -fill '#ffffff' -font \"$bottom_message_font\" ".
"-draw 'text $bottomleft_message_position \"$bottom_left_message_text\"' \) \) ".
"-compose Over -composite ".
I then put more text on the bottom right of the image using 3 labels and appending them next to each other. This produces the final image:
So that's all fine, but I can't get the £11 to have a gradient in.
I want to clone the label then fill the entire image I cloned with a gradient and then have a mask over the top.
Does that make more sense now?
$im
I take the above image and place the next image over it with a gravity of south west
$bottom_left_image
This creates this:
I then add some text to the bottom left. This is the commands I'm using up to now:
"convert \"$im\" ".
"\( -gravity SouthWest \"$bottom_left_image\" ".
"\( -pointsize $bottom_left_font_size -background transparent -fill '#ffffff' -font \"$bottom_message_font\" ".
"-draw 'text $bottomleft_message_position \"$bottom_left_message_text\"' \) \) ".
"-compose Over -composite ".
I then put more text on the bottom right of the image using 3 labels and appending them next to each other. This produces the final image:
So that's all fine, but I can't get the £11 to have a gradient in.
I want to clone the label then fill the entire image I cloned with a gradient and then have a mask over the top.
Does that make more sense now?
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: position text string immediatly before another text stri
What do you want to have a gradient? Please clarify exactly where you want the gradient. Is it all the white text or just the part on the right.
If you want all the text in the black area to have a gradient, then create the black image, write the white text, use that as a mask to overlay the same (mask) image over a gradient image of the same size as the black image. The append that result at the bottom.
If you want just the right part to have a gradient on the text, then make the underlaying image all white, just short of the text and then append a gradient to fill out the right side of the underlying image. Then use the b/w mask to composite the mask over the underlying image.
see
http://www.imagemagick.org/Usage/compose/#compose
If you want all the text in the black area to have a gradient, then create the black image, write the white text, use that as a mask to overlay the same (mask) image over a gradient image of the same size as the black image. The append that result at the bottom.
If you want just the right part to have a gradient on the text, then make the underlaying image all white, just short of the text and then append a gradient to fill out the right side of the underlying image. Then use the b/w mask to composite the mask over the underlying image.
see
http://www.imagemagick.org/Usage/compose/#compose