convert to Tiff has Grayscale not RGB why?

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
forenhopper

convert to Tiff has Grayscale not RGB why?

Post by forenhopper »

Hi,

i use this command:
convert.exe -compress LZW -depth 8 -colorspace RGB -format tiff 1.jpg 1.tiff

The Problem is that this command gives me a tiff with grayscale colors. But i need RGB. If -colorspace is CMYK the result is CMYK. But RGB does not work.

I can not use the grayscale File because the Programm where it must be load can not read it. If i change in Photoshop to RGB evertything is fine.
forenhopper

Re: convert to Tiff has Grayscale not RGB why?

Post by forenhopper »

Ok CMYK does not work everywhere:

montage.exe -background #FFFFFF -colorspace CMYK -format tiff -depth 8 -compress LZW -geometry +4+4 1.jpg 2.jpg 1.tiff

Without CMYK i get my grayscale tiff. With -colorspace CMYK i get an empty Image with the size of 1.jpg.

If i motage first and then use convert.exe i get my CMYK image...
Last edited by forenhopper on 2008-07-25T00:32:21-07:00, edited 1 time in total.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: convert to Tiff has Grayscale not RGB why?

Post by fmw42 »

read http://www.imagemagick.org/Usage/formats/#tiff about tiff format and limitations and format types

convert syntax usually has the input image right after convert, e.g.

convert.exe <input> .... <output>

-format tiff is probably not needed as it is typically used for mogrify syntax and not convert syntax with respect to the output format.

Try

convert.exe 1.jpg -compress LZW -depth 8 1.tiff

You might want to post an example of 1.jpg. Are you sure it is true color and not grayscale.
forenhopper

Re: convert to Tiff has Grayscale not RGB why?

Post by forenhopper »

@fmw42

thx for fast reply.

They are grayscale but i want to tranform to RGB.
forenhopper

Re: convert to Tiff has Grayscale not RGB why?

Post by forenhopper »

ok thx for the Link above. -type TrueColor solved my Problem.
Post Reply