I am trying to comment on text in a base image using dropshadow. I don’t like the results that I get from using the -shadow option, so I put the text, blurring it, and then again put the text in white, a few pixels offset from the shadow. Here's the command I'm using:
convert base_image.jpg \
-font TT0590M_.ttf \
-fill gray30 \
-annotate +0+0 '' -gravity North \
-annotate +72+32 'ABCDEFGHIJKLM' \
-blur 0x4 \
-fill white \
-annotate +72+27 'ABCDEFGHIJKLM' \
combined.png
My problem is that the -blur option blurs not only the first layer of text, but also the underlying base image. I want the first layer of text to blur, not the base image.
I read a little about using stacks and tried to isolate the first layer of text and the blur command, using \( \)around this part, for example, in the following:
convert base_image.jpg \
-font TT0590M_.ttf \
-fill gray30 \
-annotate +0+0 '' -gravity North \
\( -annotate +72+32 'ABCDEFGHIJKLM' \
-blur 0x4 \) \
-fill white \
-annotate +72+27 'ABCDEFGHIJKLM' \
combined.png
- , . , , , , .