Stop reducing my colors!
Posted: 2006-03-22T13:07:02-07:00
Hi,
I'm using a somewhat older version of ImageMagick, on the pc --5.5.7
Hopefully, that won't affect any possible answers to this hopefully simple question.
When using convert.exe on an RGB file that is composed of all neutral values, the utility takes it upon itself to reduce it to a single-channel grayscale image (assuming I'm not adding a non-neutral value as part of the convert).
For example:
convert -bordercolor black -borderwidth 25 gray_rgb_file.tif new_file.tif
The "new_file.tif" is now a single channel gray--no longer a 3 channel rgb.
Is there any way to prevent this from happening? Some "don't reduce colors" flag?
I'd much prefer a solution that doesn't require me to know that the orignal file was an rgb file to begin with (I'm dealing with lots of files that could be either type). I just want it to maintain the color space that the original image had, with no color reduction.
Thanks for any help anyone has here. This is causing me lots of issues as I assume that my image is still 3 color, only to find I'm suddenly dealing with a grayscale....
-Daniel
I'm using a somewhat older version of ImageMagick, on the pc --5.5.7
Hopefully, that won't affect any possible answers to this hopefully simple question.
When using convert.exe on an RGB file that is composed of all neutral values, the utility takes it upon itself to reduce it to a single-channel grayscale image (assuming I'm not adding a non-neutral value as part of the convert).
For example:
convert -bordercolor black -borderwidth 25 gray_rgb_file.tif new_file.tif
The "new_file.tif" is now a single channel gray--no longer a 3 channel rgb.
Is there any way to prevent this from happening? Some "don't reduce colors" flag?
I'd much prefer a solution that doesn't require me to know that the orignal file was an rgb file to begin with (I'm dealing with lots of files that could be either type). I just want it to maintain the color space that the original image had, with no color reduction.
Thanks for any help anyone has here. This is causing me lots of issues as I assume that my image is still 3 color, only to find I'm suddenly dealing with a grayscale....
-Daniel