Skip to content

affine should have a background parameter, and not have jaggy edges #58

Closed
@chregu

Description

@chregu

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:
vips
With IMagick:
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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions