"Invert" transparency
Posted: 2011-05-27T18:17:21-07:00
Hi,
My problem should be easy to solve as it isn't very complicated but everything I tried didn't work.
I have a image like this:
It has a transparent background and one solid color (white). The rounded borders have alpha transparency.
Now to my problem:
I want to "invert" the transparent and the white area so that the transparent area gets white and the white area gets transparent. The semi-transparent areas are my problem.
The things I tried:
--> the alpha channel gets lost so the shape is inaccurate.
--> the semi-transparent area isn't touched, so this way doesn't work either
Any hints how to solve this problem?
Thanks
My problem should be easy to solve as it isn't very complicated but everything I tried didn't work.
I have a image like this:
It has a transparent background and one solid color (white). The rounded borders have alpha transparency.
Now to my problem:
I want to "invert" the transparent and the white area so that the transparent area gets white and the white area gets transparent. The semi-transparent areas are my problem.
The things I tried:
Code: Select all
convert 1cut.png +level-colors red, out.png
Code: Select all
convert 1cut.png -transparent white out.png
Any hints how to solve this problem?
Thanks