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?".
Good morning everyone!
I hope someone here can help me. I have tried using search extensively and playing around with the code even longer but I can't figure this out. This is the situation. I have a blank PNG file (overlay.png 3264x600) that I want to add a caption at the top of (red background / black text 3264x124) which will result in a final png called finished.png. I have gotten this far. The part that is giving me trouble is I want to add a blurred dropshadow heading south a few pixels from behind the top captions background. So it would be a drop shadow of the 3264x124 red background at the top of the image. The final resulting image would have everything together. Can anyone point me in the right direction? Thanks.
convert -background '#FF0000' -fill '#000000' -font Arial-Bold -gravity center -size 3264x124 caption:"This is a sample of text." overlay.png +swap -gravity north -composite finished.png
Another ways is to create one gray text and then another of the color of your choice and composite them with the color one slightly offset and above the gray one.
Thanks for the reply. I've read through all those docs before. I am trying to create a dropshadow on the background. Not the text itself. Everytime it seems to just replace the whole image with the dropshadow image. Not merge them in order.