Quantcast
Channel: magick Discussions Rss Feed
Viewing all articles
Browse latest Browse all 3693

New Post: ImageMagick reads/converts TrueColor TIF as Grayscale?

$
0
0
Hi, I have an uncompressed 24bit Tif image and I want it to stay TrueColor however:
using (MagickImage image = new MagickImage(@"F:\wireframe.tif"))
{    
    ColorType ct = image.ColorType; //ColorType.Grayscale
    ColorSpace cs = image.ColorSpace; //ColorSpace.GRAY
             
    image.Write(@"F:\same_wireframe.tif");
}
The converted image is no longer true color but grayscale.
wireframe.tif size is: 480 678 bytes (400x400x3)
same_wireframe.tif size is: 160 470 bytes (400x400x1)
The Command Line version of Image Magick behaves the same way so maybe I post this in the wrong place?

It seems that I can’t attach the images in this discussion but the same thing happens with every 24bit image storing grayscale color information.
For example: I created a new RGB image in Gimp with white background than I painted to it with black paintbrush and exported it as uncompressed Tif.

Image Magick .Net
Type: Nuget Id: Magick.NET-Q8-x64 Version: 6.8.8.1001

Image Magick Command Line
7.0.0-0 Q16 x64 2014-01-19

Viewing all articles
Browse latest Browse all 3693

Trending Articles