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?".
The important part is a one-dimensional graduation from black at the left, through various colours, to black at the right. Then there is black at the top, and black and white at the bottom. After making the graduation, you could use "-extent" twice.
Background image is black and there is no white.... I think I can use xc::black but I just want to create a line with blue color with the faded edges.. as same in the image..
I had to do something similar the other day. But instead of making a big radial gradient image I simply made a narrow tall one and then rotated it 90 degrees.
@Bonzo Thanks alot .. It works great.. Can you explain me commands how it works? so that it will be helpful for me that I can create vertical lines as well and with different widths and heights of the faded line....
convert
size and colour of the background
(
Size for the gradient canvas
Create a radial gradient going from cyan in the centre to transparent
Cut out a small rectangle 2px high from the centre of the gradient widthxheight+x_offeset+y_offset
Remove the excess canvas
)
Set the position of the composition to the centre
Overlay the gradient line onto the original background
Use the full range of colours - makes the cyan a bit brighter
Save