Adding directional drop shadows
Posted: 2019-09-22T06:02:48-07:00
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.
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.
Code: Select all
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