Add command line options for dpi change
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
Wishlist
|
Mc | ||
0.92.x |
Fix Released
|
Wishlist
|
Mc |
Bug Description
Inkscape 0.92.0 offers 3 (and current trunk even more) options to adjust legacy documents based on 90dpi to 96dpi if and as needed. All options aim to achieve the same result (preserving physical size if and as needed) using different internal methods (with varying success - none of the methods is 100% perfect, though adding or adjusting the viewBox can be considered the most stable one).
For batch-processing large repositories of Inkscape SVG files (e.g. to export to PDF|PS), it could be helpful to offer equivalent command line options for the available methods. This would also allow to suppress the dialog if for example Inkscape is used via GUI for a large set of similar files which require the same modification.
A possible solution could be:
--change-
An advanced feature could be to allow to save the file via command line as Inkscape SVG file based on the the chosen dpi change method - resorting to re-exporting as Plain SVG (-l, --export-plain-svg) is not a valid substitute due to loss of editor data.
--export-
Similarly, the feature to adjust baseline spacing of text in legacy files on load could be supported by:
--fix-
Details may vary/depend on implementation and preferred names for the options.
Changed in inkscape: | |
importance: | Undecided → Wishlist |
milestone: | none → 0.93 |
status: | New → Triaged |
Changed in inkscape: | |
status: | Triaged → Fix Committed |
status: | Fix Committed → In Progress |
assignee: | nobody → Mc (mc...) |
Changed in inkscape: | |
status: | Fix Committed → Fix Released |
WIP status for lp:inkscape/0.92.x branch:
1) Inkscape 0.92.1pre0 includes a command line option to disable fixing baseline spacing of text in legacy documents: not-fix- pre-92 Prevents automatic fix of pre-92 files on opening them.
--do-
https:/ /bazaar. launchpad. net/~inkscape. dev/inkscape/ 0.92.x/ revision/ 15338
2) The latest patch (pending for 0.92.1pre1) in bug #1659229 includes: not-fix- pre-92 Prevents automatic fix of pre-92 files on opening them. update- method= [none|scale- viewbox| scale-document]
Method used to convert pre-.92 document dpi, if needed.
--do-
--dpi-
The command line options in (2) currently only support GUI mode (i.e. not yet to be combined with command line options that do not require the GUI). The patch needs to be "forward-ported" to trunk (if accepted for the stable release branch).