Converting TIFF's to PDF with Sharpening

Magick.NET is an object-oriented C# interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick.NET
Post Reply
menteith
Posts: 10
Joined: 2015-03-30T14:49:19-07:00
Authentication code: 6789

Converting TIFF's to PDF with Sharpening

Post 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!
Post Reply