--query-width returns visual width with no option for geometric width
Bug #1761229 reported by
Johan Rosenkilde
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
Running the command line option `--query-width` returns the visual width of the object. For many (most?) scripting purposes, one would want the visual width of the object (e.g. for any automated placement of objects).
This is the behaviour even though the Inkscape GUI is set to report geometric dimensions in the Preferences.
It would be very valuable with a command line possibility for selecting visual/geometric dimensions. Alternatively, the command line should simply follow the preference of the Inkscape GUI.
I'm running:
- Inkscape 0.92.2 (5c3e80d, 2017-08-06)
- On Fedora 27
tags: |
added: cli removed: commandline |
To post a comment you must log in.
Can you explain a bit what the use cases for querying the geometric width would be?
If we make "--query-width" behave differently depending on a preference I'm afraid it will easily cause unexpected results (in the GUI it's quite obvious if this setting is changed, but on the command line there's no visual indication that the geometric width would be returned). More importantly many scripts depend on the current behavior.
If we should decide to implement this, I think it would need to be a different command line option, but I assume in most cases it might be easier to extract the geometric dimensions directly from the SVG document (especially within the scope of extensions), making the detour through calling Inkscape and rendering the file unnecessary (which is usually costly with respect to performance).