Skip to content

Command line SVG with groups `--actions` using `object-align` aligns all objects irrespective of grouping.

Summary:

Command line action.

inkscape --actions="select-all;object-align:hcenter vcenter page;export-do"

Does not respect groups.

Steps to reproduce:

  • SVG with objects in different groups
  • command line options: inkscape --actions="select-all;object-align:hcenter vcenter page;export-do" file.svg
  • View SVG.

What happened?

The objects contained in the groups are also aligned rather than staying in their groups.

What should have happened?

Objects in groups should have stayed in their relative positions.

Sample attachments:

Version info

Inkscape 1.2 (dc2aeda, 2022-05-15)

    GLib version:     2.70.5
    GTK version:      3.24.33
    glibmm version:   2.60.0
    gtkmm version:    3.24.5
    libxml2 version:  2.9.12
    libxslt version:  1.1.34
    Cairo version:    1.17.6
    Pango version:    1.50.6
    HarfBuzz version: 2.9.1

    OS version:       macOS
Edited by Jason Milkins
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information