Why does WebImage.Resize strip out PNG transparency <p>Using <a href="http://msdn.microsoft.com/en-us/library/system.web.helpers.webimage(v=vs.99).aspx" rel="nofollow noreferrer">WebImage</a> from the MVC3/WebMatrix release. Loading the following image from a file path:</p> <p><img src="https://i.stack.imgur.com/CUJHZ.png" alt="Sample Image"> - or - <img src="https://i.stack.imgur.com/7iORI.png" alt="enter image description here"></p> <p>Running the following code against it:</p> <pre><code>return new WebImage(path) .Resize(120, 265) .GetBytes("Png"); </code></pre> <p>Results in an image with the transparency stripped out and black used in place:</p> <p><img src="https://i.stack.imgur.com/a1S4e.png" alt="Blacked out transparency"></p> <p>The same happens with RotateRight(), RotateLeft() and FlipHorizantal() However if I don't call the .Resize() method:</p> <pre><code>return new WebImage(path) .GetBytes("Png"); </code></pre> <p>The image is returned without an issue.</p>