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: dlemstra **
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: dlemstra **
This might be a bug in a new version. Can you reproduce the issue if you specify the file name instead of the stream? Can you also add a link to the image you are using? If you don't want to post that here please contact me trough Codeplex with the button on my profile page.