I'm trying to create a thumbnail using MVC3's WebImage helper.
The original image is a .png with a transparent background. When I try and resize it with the following:
var image = blob.DownloadByteArray();
new WebImage(image)
.Resize(50, 50)
.Write();
The resulting thumbnail replaces the original transparent background with a black background.
You should alter the
.Writeto pass your expected output type. It uses this passed type to determine what type of image to use.