Page 1 of 1

Convert Gray TIF file with Blue Channels to JPG

Posted: 2009-08-05T05:10:27-07:00
by Heiler81
Hi, i got a problem. I had to create some previews for a web shop and i was using ImangeMagick to convert them. My problem know is that i got a customer Picture (TIF) which is gray but with an objekt in it where a blue channel/mask (30% color) is put over it! When i convert the picture (into jpg) the mask got lost and its shown only black and white without the blue mask!

With Photoshop i can bring the picture to a RGB Colorspace and join all channels into one and it works. Is there a way to do that job with ImageMagick?



(I canĀ“t post the picture because i will get trouble when it is in web before web shop release!)

Re: Convert Gray TIF file with Blue Channels to JPG

Posted: 2009-08-05T08:54:20-07:00
by fmw42
please generate something similar to show us. Perhaps a small gray image with a smaller blue box overlaid in one area. Photoshop layers are quite different from other systems and we need to see the photoshop image and its layers to see what to do in IM.

NOTE That JPEG does not support transparency. therefore you will likely need to flatten the blue layer into the gray backgournd before converting to jpg

try

convert image -flatten result

Re: Convert Gray TIF file with Blue Channels to JPG

Posted: 2009-08-05T23:18:24-07:00
by Heiler81
I will try to build that picture today but i also got one error message wihich could also stop the convert:

wrong data type 7 for "RichTIFFIPTC"; tag ignored. `TIFFReadDirectory' @ tiff.c/TIFFWarnings/546.

Re: Convert Gray TIF file with Blue Channels to JPG

Posted: 2009-08-06T01:43:03-07:00
by Heiler81
The problem is done but in a other way. We have given it back for redesign so that it is useable also with other image tools and also imagemagick.

Thanks for the help!