I use the following options of convert.exe to convert TIFF files into one PDF: -sharpen 0x1.0 -compress Group4 -quality 100. I'm trying to convert this command to C#, however, I cannot find option in Magic.NET for -sharpen 0x1.0. Additionally, I'd like to know my code could be rewritten to run faster. My code is as follows:
Thanks!MagickNET.Initialize(@"C:\Program Files\ImageMagick-7.0.4-Q8");
using (MagickImageCollection collection = new MagickImageCollection())
{
foreach (string file in directory)
{
MagickImage tif = new MagickImage(file);
tif.Quality = 100;
//tif.Sharpen(1);
tif.CompressionMethod = CompressionMethod.Group4;
collection.Add(tif);
}
collection.Write(filename + ".pdf");