[magick-users] How to make a perspective from an image?
Ross Presser
rpresser at gmail.com
Mon Jun 18 15:19:44 PDT 2007
See http://www.imagemagick.org/Usage/distorts/#perspective
Briefly, perspective transformation is *not* an affine transformation.
Affine transformations include only scaling, shearing, rotating and
translating, none of which can alter the ratio of lengths in the way
that perspective requires. Therefore the -affine option isn't going
to cut it. You have to do heavier lifting using the -fx option, using
numbers calculated using the perl script on that page (or a similar
method).
(I ran into a similar wall several years ago with Postscript.)
On 6/18/07, Alberto Simões <hashashin at gmail.com> wrote:
> Hi
>
> I am trying to modify an image putting it in a perspective-like
> position, like this:
>
>
> |\
> | \
> | \
> | |
> | |
> | /
> | /
> |/
>
> I tried to use the -affine option, with a matrix I got with
> 'transform' tool on gimp, but I couldn't get this type of
> modification.
>
> Does anybody can help me with this?
> Thank you
> Alberto
>
> --
> Alberto Simões
>
> _______________________________________________
> Magick-users mailing list
> Magick-users at imagemagick.org
> http://studio.imagemagick.org/mailman/listinfo/magick-users
>
More information about the Magick-users
mailing list