Page 1 of 1

create a tif with a transparent background

Posted: 2012-10-17T10:09:47-07:00
by davidrhicks
Our company has several tif images of products which need transparent backgrounds. We cannot simply make white transparent because white may be in the product. What would be the "command line" way of taking a tif image and making its background transparent? To be more specific, can we use a clipping path and save it onto a transparent background?

An example of how to use the ImageMagick object's "Convert" function to accomplish this would also be helpful.

Thanks ahead of time!

P.S. We are using ImageMagick version 6.7.8-2 on a Windows platform. The language in which I am using the ImageMagick object is vbscript.

Re: create a tif with a transparent background

Posted: 2012-10-17T10:14:50-07:00
by Bonzo

Re: create a tif with a transparent background

Posted: 2012-10-17T10:27:18-07:00
by davidrhicks
Thanks for the suggested link. I checked it out, but it isn't in line with what we are trying to accomplish. We are hoping to use a clipping path and then save the image onto a transparent background.

Re: create a tif with a transparent background

Posted: 2012-10-17T10:33:43-07:00
by fmw42
see http://www.imagemagick.org/Usage/masking/#clip there is an example how to make the outside of the clip area transparent.

Also note
viewtopic.php?f=3&t=22074
viewtopic.php?f=3&t=22081
viewtopic.php?f=1&t=22069

Re: create a tif with a transparent background

Posted: 2012-10-17T11:47:53-07:00
by davidrhicks
For anyone interested, we found a way to do it. Here is the command line way:

convert test.tif -alpha transparent -clip-path #1 -alpha opaque test2.tif