
Input image 2: .png image file which have a 'deboss' effect

Expected output image with transparent background, deboss effect (not so good as the input image 2, this is best result I can do) and texture:
(I used Photoshop)

Code: Select all
convert input-texture.png \
\( out2_a315.png -channel a -negate +channel \) \
\( +clone -alpha extract -negate +write mpr:alpha +delete \) \
-compose multiply -composite \
mpr:alpha -alpha off -compose over -compose copy_opacity -composite \
emboss_texture.png
I tried it. below is the output image. Seems like it lost the 'deboss' effect:fmw42 wrote: ↑2019-08-01T22:20:14-07:00 Try this:
Code: Select all
convert input-texture.png \ \( out2_a315.png -channel a -negate +channel \) \ \( +clone -alpha extract -negate +write mpr:alpha +delete \) \ -compose multiply -composite \ mpr:alpha -alpha off -compose over -compose copy_opacity -composite \ emboss_texture.png
In photoshop.
Code: Select all
convert img.png \
\( -clone 0 -alpha extract -morphology dilate diamond:1 -write mpr:alpha +delete \) \
texture.png -compose multiply -composite \
mpr:alpha -alpha off -compose copy_opacity -composite result.png
fmw42, It works. Thanks.fmw42 wrote: ↑2019-08-02T21:16:55-07:00 try this:
Code: Select all
convert img.png \ \( -clone 0 -alpha extract -morphology dilate diamond:1 -write mpr:alpha +delete \) \ texture.png -compose multiply -composite \ mpr:alpha -alpha off -compose copy_opacity -composite result.png