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

New Post: MagickNet is Converting The Color Space

$
0
0
If an magickimage is built based on a full white png file which is in the color space of RGB/8 , and then if we write to HDD, the color space automatically converted to the Gray color space and the mode of picture in photoshop is changed to Bitmap.
As I tested it a lot I can say that it is related to the actual colors of the image, here in my case its is full white or full black.
I tested it with same image and add some color to it, then the color space is not changing.

how can I tell to MagickNet that I wanted to keep the color space. Even if I explicitly make the color space sRGB/RGB it converts it at write command to gray color space.
                var imageMagick = new MagickImage(path)
                imageMagick.ColorSpace = ColorSpace.sRGB;
                imageMagick.Write(newPath);
if you want to test it please create a full white PNG file and use it as an example.

Viewing all articles
Browse latest Browse all 3693

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>