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

New Post: Invalid IHDR data

$
0
0
Thanks for the answer.

I checked this two properties:
ResourceLimits.Width
ResourceLimits.Height

And found out that default number for both is 10000000 what is greater than 1633800. Do I missed something or maybe that number means something else(not pixels)? Also I updated Magick .NET to 7.0.0.20 and replaced that number(10000000) on 100000000. And have the same issue.

Also I use this code for testing:
 try
            {
                ResourceLimits.Width = 100000000; 
                ResourceLimits.Height = 100000000; 
                MagickNET.SetTempDirectory(@"E:\Temp");
                using (var imageCollection = new MagickImageCollection()) //add files in column merger
                {
                    foreach (var file in Directory.GetFiles(path, "*.png"))
                    {
                        imageCollection.Add(file);
                    }
                    using (MagickImage mergedImage = imageCollection.AppendVertically())
                    {
                        mergedImage.Write(Path.Combine(path, "result.png"));
                    }
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.ToString());
            }

Viewing all articles
Browse latest Browse all 3693

Trending Articles