Quantcast
Channel: magick Discussions Rss Feed
Viewing all articles
Browse latest Browse all 3693

New Post: ImageMagic (mogrify) and Magick.NET - JPG is edged instead rounded (AdaptiveResize)

$
0
0
Hello,

i have a problem with Magick.NET-Q16-AnyCPU 7.0.0.0008 and the PDF to Image conversion.

Before I'm using Magick.NET i used ImageMagick (Mogrify exe).

Also for example.

Original PDF: http://news.microsoft.com/download/presskits/windows/docs/windowstechnicalpreviewqg.pdf

ImageMagick
mogrify.exe -resize 115 -quality 100 -format jpg "*.pdf[0]"
Example with ImageMagick Mogrify

Magick.NET
using (var read = System.IO.File.OpenRead("4.pdf"))
{
    using (var write = System.IO.File.OpenWrite("4.jpg"))
    {
        MagickReadSettings settings = new MagickReadSettings();
        settings.Density = new MagickGeometry(300);
        settings.FrameIndex = 0;
        settings.FrameCount = 1;

        using (MagickImageCollection images = new MagickImageCollection())
        {
            images.Read(read, settings);

            using (MagickImage horizontal = images.AppendHorizontally())
            {
                horizontal.Quality = 100;
                horizontal.AdaptiveResize(115, 163);
                horizontal.Write(write, MagickFormat.Jpg);
            }
        }
    }
}
Example with Magick.NET Fullscreen


The output is below the code.

As comparison:
Example with ImageMagick MogrifyExample with Magick.NET Fullscreen
ImageMagick | Magick.NET

I hope you could help me to make the Magick.NET image more rounded.
The current settings are to edged.

Thanks in Advance!

Viewing all articles
Browse latest Browse all 3693

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>