Blendmode "screen" on transparent canvas
Posted: 2019-05-14T00:30:13-07:00
I need to compose three images together.
The problem is image b_4_0.png is opaque and has transparency (semi-transparent). The black pixels should not be there.
Result:
What it should look like:
The image b_4_0.png is opaque, sure it has to do something with this or the min max mean values
Images: img.zip
The problem is image b_4_0.png is opaque and has transparency (semi-transparent). The black pixels should not be there.
Code: Select all
magick -size 300x300 canvas:transparent \
img/a_4_0.png -geometry +114+55 -compose over -composite \
img/b_4_0.png -geometry +109+75 -compose screen -composite \
img/c_4_0.png -geometry +118+119 -compose over -composite \
result.png
What it should look like:
Code: Select all
magick identify -format '%[opaque]' img/a_4_0.png # false
magick identify -format '%[opaque]' img/b_4_0.png # true
magick identify -format '%[opaque]' img/c_4_0.png # false
Images: img.zip