photopea / vectorpea

Vectorpea - online editor of vector graphics
28 stars 2 forks source link

SVG export not working for multiple artboards #51

Open efuzul opened 3 weeks ago

efuzul commented 3 weeks ago

I get an error when trying to export multiple artboards as SVGs:

pp1718093804.js:10049 Uncaught TypeError: Cannot read properties of undefined (reading 'artboardRect')
    at Q.tN (pp1718093804.js:10049:57)
    at Object.C [as BL] (pp1718093804.js:5425:71)
    at b8.an.TC (pp1718093804.js:753:92)
    at fj.P9 (pp1718093804.js:14145:32)
    at ei.a (pp1718093804.js:11423:49)
    at iU.a (pp1718093804.js:11428:77)
    at bI.UP (pp1718093804.js:11501:95)

Steps to reproduce:

  1. Open project with multiple artboards
  2. Export as -> SVG
  3. Artboards option is checked
  4. Save

image

photopea commented 3 weeks ago

I have tried it and it seems to work fine. Could you maybe share a PSD with us, for which the error happens?