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

New Post: Error Reading Pages as PNGs with Byte Arrays

$
0
0
You got the following MagickReadSettings in your example project:
MagickReadSettings settings = new MagickReadSettings
{
  Density = new PointD(150, 150),
  Format = MagickFormat.Png,
  ColorSpace = ColorSpace.GRAY
};
When you set the Format to MagickFormat.Png you are telling Magick.NET/ImageMagick that the input buffer should be read as a .PNG file. But since your input is PDF it fails to read the file.

Viewing all articles
Browse latest Browse all 3693

Trending Articles



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