Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Ouverture d'un fichier SVG exporté depuis un autre logiciel : problème de lecture des calques

Community Beginner ,
Nov 26, 2025 Nov 26, 2025

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

TOPICS
Bug
210
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Community Expert ,
Nov 26, 2025 Nov 26, 2025

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"?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 26, 2025 Nov 26, 2025

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 26, 2025 Nov 26, 2025

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 26, 2025 Nov 26, 2025

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 27, 2025 Nov 27, 2025

Ok, I understand. SVG doesn't have layers. Illustrator puts everything in Layer 1.

But what do you call what it puts in Layer 1: aren't they sublayers? See screenshot.

Thank you

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 27, 2025 Nov 27, 2025
LATEST

Those are most probably groups.

Create new layers and drag the contents from the groups into the layers

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 27, 2025 Nov 27, 2025

and is it possible to convert a group into a layer (or into a sublayer) in Adobe Illustrator?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines