kyamagu / psd2svg

PSD to SVG converter.
MIT License
52 stars 17 forks source link

shapeLayer2svg but I get a base64 format img, how can i get path format? #32

Open Tunanzzz opened 6 months ago

Tunanzzz commented 6 months ago

code:

from psd2svg import psd2svg
from psd_tools import PSDImage    
psd_file = "/home/zhoupc/template-photoshop/data/fo/test.psd"
psd = PSDImage.open(psd_file)
print(psd2svg(psd[1]))

then i get: <?xml version="1.0" ?>

矩形 1

This svg's info is a base64 img, How can i get the path of the shape layer?

This layer is: "ShapeLayer('矩形 1' size=301x268)" The shape is belike this: test I can't upload the psd file to github, if you need it, i can send it by other way. Thanks for your wonderful work!!!

Tunanzzz commented 6 months ago

the print info is : `<?xml version="1.0" ?>

矩形 1 `