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

Commented 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");
}
```
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.


Viewing all articles
Browse latest Browse all 1011

Trending Articles



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