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

New Post: Automatic change of RGB images to greyscale - in jpgs

$
0
0
Magick.NET 7.0.0.0017 has been release and includes an option to prevent this behavior. If you set the attribute "colorspace:auto-grayscale" to "false" the automatic conversion to grayscale won't happen.
using (MagickImage image = new MagickImage("Input.jpg"))
{
  image.SetAttribute("colorspace:auto-grayscale", "false");
  image.Write("Output.jpg");
}

Viewing all articles
Browse latest Browse all 3693

Trending Articles



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