I am trying to resize an image using Magick.NET, but after I call the Resize
function the FileSize
property reads 0
. What am I doing wrong?
var image = new MagickImage(file.InputStream);
fileSize = image.FileSize; //will read something > 0
image.Resize(80, 80);
// image.FileSize will read 0
image.Write(stream); // results in a 0 byte stream