Skimage : rotate image and fill the new formed background
<p>When rotating an image using</p>

<pre><code>import skimage

result = skimage.transform.rotate(img, angle=some_angle, resize=True)
# the result is the rotated image with black 'margins' that fill the blanks
</code></pre>

<p>The algorithm rotates the image but leaves the newly formed background black and there is no way - using the rotate function - to choose the color of the newly formed background.</p>

<p>Do you have any idea how to do choose the color of the background before rotating an image?</p>

<p>Thank you.</p>

<p>I don't know how do it, but maybe this help you </p>

<pre><code>http://scikit-image.org/docs/dev/api/skimage.color.html
</code></pre>

<p>Good luck! ;)</p>

python skimage