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

New Post: temporary magick files left behind

$
0
0
Using this image:
 https://www.dropbox.com/s/rvlobf0ygxz89kp/AT_SPACE4C01_CS_CIROS.eps
and this code:
     var destinationStream = new FileStream(@"C:\test.jpg", FileMode.Create);

        //this is the image in dropbox
        string sourceFilePath = sourceFile;

        using (MagickImage magickImage1 = new MagickImage(sourceFilePath))
        {
            magickImage1.Strip();
            magickImage1.Format = MagickFormat.Jpg;
            magickImage1.Density = new MagickGeometry(300, 300);

            destinationStream.SetLength(0);

            magickImage1.Write(destinationStream);
        };
The following temp file gets left behind. This particular temp file is empty(0 kb), but still left behind. Let me know if you need me to send you an example where the temp file has data inside.
 https://www.dropbox.com/s/21eghda1b45tmhc/magick-11068czWiyinCfnP0

Viewing all articles
Browse latest Browse all 3693

Trending Articles