title: Shear an image without cropping
body: <p>I am trying to do a shear transformation on images using python. I am using skimage (scikit-image), opencv or similar can also do the job i think. The problem is whenever I try to shear using affine transform and warp (skimage) the image appears "cropped" or "clipped" (some parts of the "sheared" image are lost) which has sense as far as shear transform moves pixels (involves a translation of pixels). I need that the "canvas" supporting the image scale so the "sheared" image fit in a new image but keeping all the information of the input image (image attached)</p>
  
  <p><a href="https://i.stack.imgur.com/RCFOQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RCFOQ.png" alt="Top: a WxH image containing a frame. Bottom: sheared input image using a new image so every information of the original is kept"></a></p>