Removing white from image with white background where gradients are present
Posted: 2016-08-27T09:19:04-07:00
Hi Everyone
I'm working with images that were created as monochrome TIFFs (colour separations) where I need to convert them to PNGs with a transparent background, removing all the white.
The problem is, the images have gradients in them. So for example I need to be able to replace not just solid white with transparent (which I managed to do already) but also take into account percentages; so for example what was 40% black before would become 100% black but 40% opaque, if that makes sense.
So an example of the source image:
https://www.dropbox.com/s/zy5by7duftpj0 ... t.tif?dl=0
Desired result:
https://www.dropbox.com/s/55hf82swzg3mj ... 1.png?dl=0
Looking for recommendations as to how this could be achieved with ImageMagick (I am actually using Magick.NET but guess this is more a question of the correct technique to achieve).
Thanks in advance.
I'm working with images that were created as monochrome TIFFs (colour separations) where I need to convert them to PNGs with a transparent background, removing all the white.
The problem is, the images have gradients in them. So for example I need to be able to replace not just solid white with transparent (which I managed to do already) but also take into account percentages; so for example what was 40% black before would become 100% black but 40% opaque, if that makes sense.
So an example of the source image:
https://www.dropbox.com/s/zy5by7duftpj0 ... t.tif?dl=0
Desired result:
https://www.dropbox.com/s/55hf82swzg3mj ... 1.png?dl=0
Looking for recommendations as to how this could be achieved with ImageMagick (I am actually using Magick.NET but guess this is more a question of the correct technique to achieve).
Thanks in advance.