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

Convert png to b/w tiff with CCITT Group 4 compression

Mar 8, 2016 at 7:21 PM
I am new to Magick.Net/ImageMagic. I have a png file coming from an HTML5 canvas editing session, that I have to (re)convert back to a b/w tiff compressed with CCITT Group 4.
I can't seem find enough information or examples to put all the pieces together to get this done.
I am on Windows using C#
Any help would be appreciated and a bounty might be available for an answer that works.
Coordinator
Mar 8, 2016 at 8:58 PM
Edited Mar 8, 2016 at 9:34 PM
When you have a PNG file on disk you can just do this:
using (MagickImage image = new MagickImage("input.png"))
{
  image.CompressionMethod = CompressionMethod.Group4;
  image.Write("output.tiff");
}
p.s. Are you talking about this: https://en.wikipedia.org/wiki/Bounty_(chocolate_bar)?