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

New Post: 1000+ Single Page JPEG encoded TIFF takes lot of memory and throws an error.

$
0
0
I can run the following code without any problems. Are you sure your issue is not related to a specific image?
using (MagickImage image = new MagickImage("logo:"))
{
  image.CompressionMethod = CompressionMethod.JPEG;
  image.Write(@"C:\logo.tiff");
}

for (int i = 0; i < 10000; i++)
{
  using (MagickImageCollection images = new MagickImageCollection(@"C:\logo.tiff"))
  {
    Bitmap test = images.ToBitmap();
    test.Dispose();
  }
}

Viewing all articles
Browse latest Browse all 3693

Trending Articles