Closed
Description
I try to rotate an image by arbitrary angle. Basically works fine with just similarity
, but the borders look pretty jagged, compared to what for example imagick produces.
Any hints to make them smoother?
With VIPS:
With IMagick:
I'd also like to have a user-definable "background" layer instead of just an fully transparent alpha channel. For now I do this with:
$aa = $this->vips->extract_band(3);
$this->vips = $aa->ifthenelse($this->vips, $background);
But I assume this doesn't really work nicely, in case I happen to have smooth borders with hopefully also smoothness on the alpha channel for the rotated image. How would I put the rotated image on top of the background image (which can have an alpha channel as well)? Basically a compositeImage
operation in IMagick, I assume.