StefanTraistaru / batch-export

Inkscape extension that allows you to export each layer into a single file.
MIT License
62 stars 7 forks source link

No Export Content on Windows 10 #12

Closed TrevorCash closed 3 years ago

TrevorCash commented 3 years ago

I get a crash when I export my drawing on windows 10. I'm exporting layers as SVG's. The files appear to get written but with no contents, here is one of the output files:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:cc="http://creativecommons.org/ns#"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:svg="http://www.w3.org/2000/svg"
   xmlns="http://www.w3.org/2000/svg"
   width="79.110741mm"
   height="280.30972mm"
   viewBox="0 0 79.110741 280.30971"
   version="1.1"
   id="svg8">
  <defs
     id="defs2" />
  <metadata
     id="metadata5">
    <rdf:RDF>
      <cc:Work
         rdf:about="">
        <dc:format>image/svg+xml</dc:format>
        <dc:type
           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
        <dc:title />
      </cc:Work>
    </rdf:RDF>
  </metadata>
</svg>

Here is the attached drawing I am using. EuroPlate_Art_and_Cuts.zip

Settings: image

Inscape Version: image

Thanks for you help, Trevor

StefanTraistaru commented 3 years ago

Hi Trevor,

Thanks for the detailed issue. The fact that you included the source file definitely helped a lot.

I was able to reproduce the issue on Linux as well and I think it is a problem with the grouped layers. I will update this issue once I manage to solve it.

Workaround: Ungroup layers and have them all on the same hierarchical level. Make sure you have a backup of your original file before as this will mess with you layer structure. After this step, just use the extension and it will work as intended.

StefanTraistaru commented 3 years ago

I fixed the problem and added a new option that you can choose from in order to make exports based on the hierarchical structure of the layers. You can find the updated version on the Inkscape website as well.

I will close this issue now. Feel free to reopen it if you have any questions.