Quantcast
Channel: magick Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 1011

Closed Unassigned: Resize results in a black image [1214]

$
0
0
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");
}
```

Viewing all articles
Browse latest Browse all 1011

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>