玻璃上的文字雕刻效果

Text engraving effect in glass

我正在尝试预览带有一些文字的玻璃雕刻效果。检查我想要的结果的preview image

这是我从 original image.

转换而来的代码
convert -size 1000x1000 xc:none -draw "image Over 0,0 0,0 \'s2.png\'" \
    -draw "font Candice-10-Pitch font-size 70 fill blue \
          text 190,300 \'mr.\'" \
    -draw "font Candice font-size 40 fill blue \
          text 160,380 \'JITENDRA\'" \
    -draw "font Candice-10-Pitch font-size 30 fill blue \
          text 160,430 \'Sept 26, 1990\'" \ output.jpg

我试过使用 ImageMagick,但它对我不起作用。

注意:显示文字颜色,可以自定义也可以透明

您的 ImageMagick 代码太复杂了。我没有你所有的字体,但这是我编码的方式。

输入:

convert s2.png \
-font Candice -pointsize 70 -fill blue -draw "text 190,300 'mr.'" \
-font Candice -pointsize 40 -fill blue -draw "text 110,380 'JITENDRA'" \
-font Candice -pointsize 30 -fill blue -draw "text 160,430 'Sept 26, 1990'" \
-alpha off output.jpg


注意:我已经重复了字体和填充颜色,以防您想为每一行单独的文本更改其中之一。

根据要求,这里是如何使文本透明和添加剪贴画。在 ImageMagick 中,我使用 label: 为每个文本字符串创建单独的图像。然后我将每个文本合成在背景上。文字和剪贴画一样用半透明颜色制作,合成方法是多重的,以保持背景图像的纹理。

背景:

剪贴画:

convert s2.png \
\( -background none -font Candice -pointsize 70 -fill "rgb(245,222,179,0.5)" label:'mr.' \) \
-geometry +190+300 -compose multiply -composite \
\( -background none -font Candice -pointsize 40 -fill "rgb(245,222,179,0.5)" label:'JITENDRA' \) \
-geometry +110+380 -compose multiply -composite \
\( -background none -font Candice -pointsize 30 -fill "rgb(245,222,179,0.5)" label:'Sept 26, 1990' \) \
-geometry +160+430 -compose multiply -composite \
\( sun.png -alpha set -channel a -evaluate multiply 0.6 +channel -resize 100x100 \) \
-geometry +200+500 -compose multiply -composite \
-alpha off output.jpg