Copy link to clipboard
Copied
bonjour,
lorsque j'ouvre un fichier SVG exporté depuis un autre logiciel (QGIS), Illustrator créé un "faux" calque "Calque 1" et y place tous les "vrais" calques à l'intérieur. Le problème c'est que ces "sous-calques" ne peuvent pas être transformés en calque (il faut les recréer manuellement).
D'autres logiciels comme Inkskape ou Affinity Designer lisent correctement le même fichier SVG, donc sans le niveau "Calque 1" (voir copies d'écran).
Le problème semble bel et bien venir d'Illustrator lui-même qui crée ce niveau Calque 1.
Savez-vous comment le supprimer?
Merci
N. Martin
-------------------
PS : les fichiers SVG réenregistrés depuis Inkskape ou Affinity Designer produisent le même problème.
-------------------
Plateformes : Windows 10 Pro 64 bits // AI cc 30.0 // QGIS 3.40.4 Bratislava // Inkskape 1.1 // Affinity Designer 2.6.5
Copy link to clipboard
Copied
The QGIS documentation says its SVG output is "very basic" and that it "will hopefully be sorted out in the future." Have you tried different export settings such as "export map layers as SVG groups"?
Copy link to clipboard
Copied
Yes, I tried the “export map layers as SVG groups” option, and it works with the same SVG file created with QGIS in other software such as Inkscape or Affinity Designer. Adobe Illustrator is the only software that reads SVG files in this incorrect way.
Copy link to clipboard
Copied
I tried different methods of opening the TEST_SVG.svg file in Adobe Illustrator, using the File>Open command and the Place command to drop the artwork into a new document. In both cases the artwork does open with everything moved to one layer. I checked "Show Import Options" in the Place command dialog box, but no options dialog box appeared. The artwork simply opened ready to place onto the art board. The results are the same in both the current version of Illustrator and a previous version I have installed.
The TEST_SVG.svg file does indeed open in Affinity Designer 2.6.5 with the layer structure intact. I tried exporting the artwork out of Affinity Designer in PDF and EPS format. The PDF dialog box includes options to preserve layers and preserve hidden layers. In either case the resulting PDF opened in Illustrator with everything moved to one layer. EPS delivered similar results.
Does the QGIS application give any options to save SVG files in different versions (such as 1.0, 1.1, 1.1 Tiny, 1.2, etc)? I wonder if the file version has any effect on Illustrator preserving the layer structure when the file is opened.
Copy link to clipboard
Copied
SVG does not have layers at all, it only has groups. So when opening an SVG, Illustrator does not know what to do with an entity called group. Is it a layer or a group?
Both Inkscape and Affinity obviously decided to make those into layers. In both Inkscape and Affinity objects can exist outside of layers, which is not possible in Illustrator.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Those are most probably groups.
Create new layers and drag the contents from the groups into the layers
Copy link to clipboard
Copied
and is it possible to convert a group into a layer (or into a sublayer) in Adobe Illustrator?
Find more inspiration, events, and resources on the new Adobe Community
Explore Now