sometimes BMP to TGA conversion results in a greyscale image

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
neon

sometimes BMP to TGA conversion results in a greyscale image

Post by neon »

Hello,


I have a weird problem where sometimes converting a BMP image to a TGA one with a resize in the process results in a greyscale image. The filesize also ends up about 460kb as opposed to the standard 1.2MB or so we are used to. Reprocessing the same source image using the same source code usually corrects the error, but the fact that it's happening in the first place is concerning.

Any ideas on how to resolve this?

Regards,
Neon
neon

Re: sometimes BMP to TGA conversion results in a greyscale image

Post by neon »

okay i figured out what's up and thought i'd share the results in case anyone else had this problem..

the source images were pictures of silverware and they were being treated at the photoshop stage by retouchers.

the retouchers were removing the saturation of the image to help ensure they retained their silver look.

this resulted in Imagemagick detecting the source images as greyscale.

I used -type TrueColor to fix this.
Post Reply