Hey,
I am using ImageMagick.Net to create thumbnails from PDFs of blueprints (fine lines, black on white). If I am using "classic" ImageMagick from the console (convert original.pdf -resize 500x500 thumb.png) I get a really nice thumbnail.
If I use Magick.net with the example code from the documentation
Does anyone have an idea, what might be the problem?
I am using ImageMagick.Net to create thumbnails from PDFs of blueprints (fine lines, black on white). If I am using "classic" ImageMagick from the console (convert original.pdf -resize 500x500 thumb.png) I get a really nice thumbnail.
If I use Magick.net with the example code from the documentation
MagickGeometry size = new MagickGeometry(500, 500);
MagickReadSettings settings = new MagickReadSettings();
// Settings the density to 300 dpi will create an image with a better quality
settings.Density = new PointD(300, 300);
using (MagickImageCollection images = new MagickImageCollection())
{
// Add all the pages of the pdf file to the collection
images.Read(original, settings);
int page = 1;
foreach (MagickImage image in images)
{
// Writing to png
//image.Format = MagickFormat.Png00;
image.Resize(size);
image.Write(destination + page + ".png");
page++;
}
I get a very blurry thumbnail. I tried adjusting various settings but the result stays the same.Does anyone have an idea, what might be the problem?