Making Screen Units and SVG Units the same
People,
When I create a new image, I get a page that, in Landscape mode, is 800 units wide and 600 units high. I know that the origin for the SVG y-axis is at the top-left of the screen and the positive direction is down and the reverse is the case for the Inkscape y-axis and I am not concerned for this exercise about printed output. I just want the absolute units on the screen to correspond to the absolute units in the SVG file that Inkscape produces - is this possible? (I couldn't find anything in the program or Googling . .)
Thanks,
Phil.
On 08-08-16 07:08, Philip Rhoades wrote:
When I create a new image, I get a page that, in Landscape mode, is 800 units wide and 600 units high. I know that the origin for the SVG y-axis is at the top-left of the screen and the positive direction is down and the reverse is the case for the Inkscape y-axis and I am not concerned for this exercise about printed output. I just want the absolute units on the screen to correspond to the absolute units in the SVG file that Inkscape produces - is this possible? (I couldn't find anything in the program or Googling . .)
To obtain the same units, go to document-properties and choose for units: px.
There is one catch: when resizing the page size, it translates the current layers such that the origin stays on the same place (but this messes up the exact unit numbers). The easiest solution is to start with an empty document, resize the page size, save it and open it with a text editor. Look for:
<g inkscape:label="Layer 1" inkscape:groupmode="layer" id="layer1" transform="translate(0,-252.36216)" />
And remove ```transform="translate(0,-252.36216)" ```.
Kind regards
Am 12.09.2016 um 13:00 schrieb Vasco:
On 08-08-16 07:08, Philip Rhoades wrote: There is one catch: when resizing the page size, it translates the current layers such that the origin stays on the same place (but this messes up the exact unit numbers). The easiest solution is to start with an empty document, resize the page size, save it and open it with a text editor. Look for:
<g inkscape:label="Layer 1" inkscape:groupmode="layer" id="layer1" transform="translate(0,-252.36216)" />
And remove ```transform="translate(0,-252.36216)" ```.
For me, this also works if I just create a new layer, move the contents there, then delete the old layer. For many users, that graphical method is easier.
It also fixes those weird tiled clones behaviours and some other 'dislocation' problems.
Regards, Maren
Kind regards
Inkscape-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user
participants (3)
-
Maren Hachmann
-
Philip Rhoades
-
Vasco