This project has moved. For the latest updates, please go here.

Auto Enhance the image

May 6, 2016 at 12:02 PM
I would like to auto enhance my picture.

In image magick we can use a command like

convert SourceImage.jpg -channel rgb -auto-level ResultImage.jpg

What would be the equivalent code with Magick.Net code?

Thanks
Coordinator
May 6, 2016 at 12:11 PM
Most command line options are methods of the MagickImage class. Next time you should check if you can find a method that has the same name as the option and give that a try. Below is a translation of your command line:
using (MagickImage sourceImage = new MagickImage("SourceImage.jpg"))
{
  sourceImage.AutoLevel(Channels.RGB);
  sourceImage.Write("ResultImage.jpg");
}
May 6, 2016 at 12:12 PM
Wow. Thanks a lot. You are awesome. :)