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" ?>
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:
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!!!
code:
then i get: <?xml version="1.0" ?>
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: 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!!!