Changing "Force repeat commands" has effect only on new or modified paths

Bug #690683 reported by joachimeibl
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Opinion
Wishlist
Unassigned

Bug Description

Since 0.47 the setting "Force repeat commands" (Inkscape preferences, SVG output) is off by default (probably new too).
I use Inkscape to create graphics for use with Qt. But my version of Qt doesn't show paths where commands are not repeated and I have to enable that option. (With older versions of Inkscape there was no problem.)

Yet for pictures that were created with this option turned off this has no effect, unless I somehow modify each path one by one.
Just loading and saving with the option turned on doesn't work.

Could you please tell me if an easier way exists, or could you (in a future version) recalculate all paths before saving (according to that setting)?

Perhaps you could also enable that option by default?

Cheers,
Joachim

Tags: saving svg
Revision history for this message
su_v (suv-lp) wrote :

> But my version of Qt doesn't show paths where commands are not repeated

Duplicate of bug #458388
“Rendering errors in QtSvgRenderer due to changed SVG output in Inkscape 0.47”
<https://bugs.launchpad.net/inkscape/+bug/458388>

According to - unfortunately uncofirmed - comments in bug #458388, bugs in older Qt versions have been fixed in Qt 4.6 (it needs fixing in Qt because Inkscape's optimized paths are conforming to the SVG 1.1 specification).

> Could you please tell me if an easier way exists (…)

1) select all 'Ctrl+A' or all in all layers 'Ctrl+Alt+A'
2) force a rewrite of the path data: e.g.
  - move the selection a nudge with the 'up' cursor key
  - move the selection a nudge back again with the 'down' cursor key
3) verify path data with 'Edit > XML Editor'

> (…) or could you (in a future version) recalculate all paths before saving

AFAIU Inkscape doesn't rewrite the SVG source (possibly created by third-party applications or manually edited to use certain SVG features which don't have a GUI yet in Inkscape) unless needed. Rewriting the SVG data for all objects within the file on save by default (IMHO) could negatively affect far more users than those trying to accommodate "buggy" or older SVG renderers with limited capabilities.

A command or keyboard shortcut to trigger a rewrite of the path data for selected objects (basically performing a no-op command, without visual changes) could be useful though.

> Perhaps you could also enable that option by default?

Optimized path data was introduced in Inkscape 0.47 [1] as new feature, in full accordance to the SVG 1.1 spec, to reduce file size by generating the shortest possible path strings. It would not make sense to not use this feature by default (IMHO).
<http://wiki.inkscape.org/wiki/index.php/Release_notes/0.47#Optimized_path_data>

Other related links:
Issues with SVG preview on Kubuntu:
<http://thread.gmane.org/gmane.comp.graphics.inkscape.devel/33719>
Bug #636564 “Export svg for blender is incorrect”
<https://bugs.launchpad.net/inkscape/+bug/636564>

tags: added: saving svg
Changed in inkscape:
importance: Undecided → Wishlist
jazzynico (jazzynico)
Changed in inkscape:
status: New → Opinion
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.