3

I am trying to transform a rectangular shape to a trapezium as shown in the image below. In the Inkscape transform menu, there is an option to use a 2x3 matrix. However, that does not allow "3d" transformations. I think I read somewhere that the SVG specification supports larger matrices, but I cannot find much information about it. So my question is: how do you do this in Inkscape?

Transform rectangle to trapezium

1
  • For future readers: this is not a classic case of the XY problem, but it's close enough.
    – wizzwizz4
    Commented Feb 21, 2016 at 12:27

1 Answer 1

4

SVG transformation matrices only allow for affine transformations, i.e., something that is a combination of moving, rotating, stretching and skewing. Trapezium transformations cannot be expressed as a combination of these operations and thus they are not possible to be done with SVG transformation matrices.

However, extensions → modify path → perspective performs such a transformation. For details, see for example this question.

8
  • Ok... The first time I tried it, the shapes were sideways, and it left half of them in their original places. After unlinking all the clones, it doesn't do anything at all... I don't know what's happening.
    – wizzwizz4
    Commented Feb 21, 2016 at 15:23
  • @wizzwizz4: I am sorry, but I have no idea. Unlinking clones seems like a good idea in general, but it should not lead to nothing kappening at all.
    – Wrzlprmft
    Commented Feb 21, 2016 at 15:34
  • It could be that now there are two many objects... Because it seems to do all the calculations, and takes its time over it, but then doesn't produce a result. Hmm...
    – wizzwizz4
    Commented Feb 21, 2016 at 15:41
  • 1
    @wizzwizz4: Try applying Object to Path to everything – everything must be a path.
    – Wrzlprmft
    Commented Feb 21, 2016 at 15:48
  • 1
    @wizzwizz4: What exactly do yo mean by sideways? If it looks as if the trapezium is used for transformation but not as you wish, try to change its sequence of vertices (easiest done in the XML editor).
    – Wrzlprmft
    Commented Feb 21, 2016 at 16:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.