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

New Post: Read Pdf image using Magick.NET-x86.dll, StackOverflow exception?

$
0
0
May be I can help to find the cause.
These assemblies have the error mentioned above:
Magick.NET-7.0.0.0010-Q8-x86-net40-client
Magick.NET-7.0.0.0011-Q8-x86-net40-client
The most recent dll's version that converts pdf correctly is 7.0.0.0009.
Here is debug log from 7.0.0.0010: https://yadi.sk/i/Osu9m3qjfuZW2
Sorry, I wasn't able to post log here because of message size limit.
The code was:
using (var imageList = new MagickImageCollection())
{
  imageList.Read(sourcePath);
  int count = 0;
  foreach (MagickImage im in imageList)
  {
    im.Format = MagickFormat.Jpg;
    im.Quality = 70;
    im.CompressionMethod = CompressionMethod.LosslessJPEG;
    im.Write(string.Format("{0}-{1:000}.jpg", targetPath, count));
    count++;
  }
}
Thanks!

Viewing all articles
Browse latest Browse all 3693

Trending Articles



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