On Sun, Sep 15, 2013 04:52 PM Doug Fortune <[log in to unmask]> wrote:
>
>Hello:
>
>The command line to rotate by 90 (and similarly for 180 and 270) degrees is
described in the manual as:
>
>vips im_rot90 in.png out.png
>
>
>
>However, nip2 has the additional feature to rotate by an arbitrary amount (say
7.5 degrees)
>But there seems to be no such command as the one below:
>
>
>vips im_rotate in.png out.png 7.5 <--- command not recognized
>
>
>
>Further, nip2 (toolkits->image->transform->rotate->free) gives the option of
bilinear,
>Bicubic,upside,upsharp and upsmooth algorithms).
>
>
> -------------
>
>Question:
>
>Is this functionality available in command line version?
>
>
>Thanks
>Doug
>
>
Yes, the command is "im_affinei_all"
For arbitrary rotation:
$ vips im_affinei_all in_file out_file interpolation cos_angle sin_angle
sin_angle cos_angle 0 0
|