![Image](http://pic53.s3-us-east-2.amazonaws.com/Others/test-emboss/input-texture.png)
Input image 2: .png image file which have a 'deboss' effect
![Image](http://pic53.s3-us-east-2.amazonaws.com/Others/test-emboss/out2_a315.png)
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)
![Image](http://pic53.s3-us-east-2.amazonaws.com/Others/test-emboss/out-expected.png)
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