Page 1 of 1

Converting TIFF's to PDF with Sharpening

Posted: 2017-02-17T07:26:39-07:00
by menteith
Hi all,

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:
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");
Thanks!