Results 1 to 4 of 4

Thread: How to rotate an SVG?

  1. #1
    Join Date
    Jul 2008
    Location
    Alabama, USA
    Beans
    906
    Distro
    Ubuntu 10.10 Maverick Meerkat

    How to rotate an SVG?

    I'm an Inkscape noob, and Google has failed me.

    Pretty straightforward question: How can I rotate a complete image in Inkscape?

  2. #2
    Join Date
    Dec 2009
    Beans
    174
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: How to rotate an SVG?

    Click on the anywhere on image once, you will see arrows at the 4 corners of the object.
    If they point out it means you can increase or decrease the size of the image.

    Now click a second time and you will see the arrows change. That will be the mode you want to be in if you want to rotate an image.

  3. #3
    Join Date
    May 2010
    Beans
    20
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: How to rotate an SVG?

    Hi,
    I don't think there's a way to actually rotate the entire image from Inkscape. I would imagine you could swap the horizontal and vertical dimensions of the canvas and then rotate all the objects on the canvas (Ctrl-A and then Rotate). That's how I'd do it, even though I've never had to do it before.
    KOO

  4. #4
    Join Date
    Nov 2008
    Location
    Darmstadt, Germany
    Beans
    Hidden!
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: How to rotate an SVG?

    Sorry for bumping.

    You can rotate an element in SVG by wrapping it in a group that has the transform="rotate(180 x y)" attribute.

    If everything is already contained in a group (pretty common. If it's not you can wrap it in a group by using Control-G on all elements [select with Control-A]) you can just add the attribute to the tag. For example if the group looks like:

    <g id="layer1">

    you can change it to

    <g id="layer1" transform="rotate(180 50 50)">

    It says "50" here in both X and Y coordinates. This only works if your image is 100 units wide. Just use half the length.

    Inkscape has a built-in XML editor you can use.

    But actually you don't need the text editor, you can just select everything like mentioned in the previous post and wrap it in the group and then rotate. Sometimes Inkscape performs poorly on very big images though, so I think it's nice to know how to do it in the text editor. Makes it easier to automate too.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •