Convert Gray TIF file with Blue Channels to JPG

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
Heiler81
Posts: 63
Joined: 2009-03-12T01:52:24-07:00
Authentication code: 8675309
Location: Germany, Stuttgart

Convert Gray TIF file with Blue Channels to JPG

Post 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!)
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Convert Gray TIF file with Blue Channels to JPG

Post 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
Heiler81
Posts: 63
Joined: 2009-03-12T01:52:24-07:00
Authentication code: 8675309
Location: Germany, Stuttgart

Re: Convert Gray TIF file with Blue Channels to JPG

Post 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.
Heiler81
Posts: 63
Joined: 2009-03-12T01:52:24-07:00
Authentication code: 8675309
Location: Germany, Stuttgart

Re: Convert Gray TIF file with Blue Channels to JPG

Post 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!
Post Reply