This was working just fine and now all of a sudden when I attempt to re-size an image the result is a black rectangle. Here's my code:
Am I missing something? Is there a better way to accomplish the resize I'm going for with this code?
```
using (var magick = new MagickImage(imageStream))
{
// Resize the image to retain it's ratio but be no taller than the specified height
magick.Resize(new MagickGeometry("x" + ( string.IsNullOrEmpty( ConfigKeys.ResizeHeight ) ? "200" : ConfigKeys.ResizeHeight ) ) );
// Save the image
magick.Write("~/Images/Products/" + productFamily.ImageName + ".png");
}
```
Comments: ** Comment from web user: Raquor **
Am I missing something? Is there a better way to accomplish the resize I'm going for with this code?
```
using (var magick = new MagickImage(imageStream))
{
// Resize the image to retain it's ratio but be no taller than the specified height
magick.Resize(new MagickGeometry("x" + ( string.IsNullOrEmpty( ConfigKeys.ResizeHeight ) ? "200" : ConfigKeys.ResizeHeight ) ) );
// Save the image
magick.Write("~/Images/Products/" + productFamily.ImageName + ".png");
}
```
Comments: ** Comment from web user: Raquor **
I was able to go back to a previous version and get it working again. I must've messed up a configuration or something...