Inkscape.org
Beyond the Basics Can I query the unrotated size of an element
  1. #1
    Edaqa Mortoray Edaqa Mortoray @mortoray

    I'm using `--query-all` now to get the position and size of elements. I'm looking for a way to get the size of the element (the bounding box) in it's unrotated position.

    Is there a way to get this information?

  2. #2
    inklinea inklinea @inklinea⛰️
    *

    I don't think it's possible to remove just the rotate part, from the command line, you can remove all transformations and then compare input to output.

    inkscape --actions="query-all;select-all;transform-remove;query-all;" drawing.svg

    I think it would require writing an extension https://inkscape.gitlab.io/extensions/documentation/inkex.transforms.html

     

  3. #3
    Edaqa Mortoray Edaqa Mortoray @mortoray

    Thanks. I think I'll have to look at an extension. The command-line it looks like won't behave as I wish in a hierarchy of objects -- I need to get the untransformed bounding box for each element where all the children still retain their transformations.
     

Inkscape Inkscape.org Inkscape Forum Beyond the Basics Can I query the unrotated size of an element