Thursday, February 23, 2017

Reverse transparent image.

Let we have the png file:

And the task is use this as mask with white background to see other background bellow.
At first we need to revert transparency. I use imagemagick CLI for this:

> convert london-landmark.png -background white -alpha background -channel a -negate +channel london-landmark2.png

The result is:



Then it looks on the page:




No comments:

Post a Comment