Rotate image *without* resizing it
<p>I would like to rotate an image (with a user-defined angle of rotation), but without making the image smaller.</p>

<p><img src="http://i.stack.imgur.com/Vf1YZ.jpg" alt=""></p>

<ol>
<li>is what happens already, saving the shaded area as a smaller image</li>
<li>is what I would like, the dashed line being the new image size.</li>
</ol>

<p>The server has PHP 5.3+. Links, code and explanations all very welcome.</p>
