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

New Post: I have error with reading png.

$
0
0
Hello I'm using next code and have some exceptions. This file generates by Aspose library. There are many another files that generated by Aspose libray and everything is okay. But this one doesn't work. On every time when Aspose generates new file it can't be read with MagickImage. Could you please help me? Thanks.
  using (var collection = new MagickImageCollection())
            {
                try
                {
                    var t = new MagickImage(Path.Combine(Directory.GetCurrentDirectory(), "Templates","1.png"));
                }
                catch (Exception ex)
                {
                    Console.Write(ex.Message);
                }
            }
Exception:
Read Exception D:\PROJECTS STUDY\C#\MagickNETTester\MagickNETTester\bin\Debug\Templates\1.png' @ error/png.c/MagickPNGErrorHandler/1650

Corrupt image
D:\PROJECTS STUDY\C#\MagickNETTester\MagickNETTester\bin\Debug\Templates\1.png' @ error/png.c/ReadPNGImage/4020![Image]

This file here:
http://1drv.ms/1pnuGfF

Viewing all articles
Browse latest Browse all 3693

Trending Articles



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