ScaleRotateTranslateDistortion + Bestfit = Clipped Image

Magick++ is an object-oriented C++ interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick++.
Post Reply
User avatar
Posts: 27
Joined: 2011-03-27T14:25:09-07:00
Authentication code: 8675308

ScaleRotateTranslateDistortion + Bestfit = Clipped Image

Post by jonoomph » 2012-11-14T09:59:11-07:00

I noticed when using the distort method (with ScaleRotateTranslateDistortion), the bestfit argument does not resize the image to include all pixels involved in the distortion. For example, if you set the final distort arguments (nx,ny) to a non-zero value, the best fit argument does not increase the size of the canvas to match the new X & Y location, and thus the distorted image is clipped or entirely blank (depending on how much you shift the nx & ny).

Is this by design, or perhaps a bug with the 'ScaleRotateTranslateDistortion' distort method?


Post Reply