Skip to content

Add doc_ai_convert extension

Windell Oskay requested to merge Issue-175 into master

Add new extension in Document submenu for processing SVG exported by Adobe Illustrator, which may assist users that use Inkscape alongside AI or who are migrating from AI to Inkscape.

The various difficulties using SVG saved by AI in Inkscape have been detailed, perhaps to a fault, in issue #175 (closed) and several additional preceding issues linked therein. The issues are briefly summarized as:

  1. AI has many options for exported SVG. We need to specify which should be used for best results.
  2. SVG does not define layers; both AI and Inkscape use groups with special (but different) labels to act as layers.
  3. AI uses a convention of 72 pixels per inch. Depending on settings, it may export SVG at correct size (sized in physical units like mm), or at 75% scale (72/96).

This extension addresses these three issues in order to resolve and close issue #175 (closed):

  1. The extension GUI offers no adjustable parameters, but provides instructions for use including suggested export settings from AI.
  2. The extension changes groups labeled to AI as layers into groups labeled to Inkscape as layers.
  3. In cases without a document size in physical units like mm, re-interpret the document size as given in pt units (1/72 inch) rather than Inkscape's default identification of the size as being in px units (1/96 inch).

Tests with references added as well.

Merge request reports