mehdidc / pixel_to_svg

Simple unsupervised segmentation based method for turning a raster image into SVG using potrace.
17 stars 6 forks source link

'potrace._potrace.Bitmap' object has no attribute 'to_xml' #1

Closed Ravindra-Kanitkar closed 3 years ago

Ravindra-Kanitkar commented 3 years ago

Hey, your repo looks perfect but it has one problem! While running the potrace step, to_xml() method is not there! Please tell me how to tackle it?

mehdidc commented 3 years ago

Hey! thanks for your interest and for noticing this, I forgot to point it out, will do, you need to use the branch "to_xml" branch from here: https://github.com/gungoren/pypotrace/tree/to_xml

mehdidc commented 3 years ago

I remember having a bug and I needed to change a minor thing in that branch, if it does not work, please try my fork https://github.com/mehdidc/pypotrace/tree/to_xml

Ravindra-Kanitkar commented 3 years ago

Hey can you list down the steps from start to end installation procedure! I have installed correctly, but I am having problems with pypotrace! I am using linux only, so please can you demonstrate me! Thank You in advance!

mehdidc commented 3 years ago

Hey, I realize I forgot to commit my change to the to_xml branch in my fork, I did now. I just tried now the following steps and the example (https://github.com/mehdidc/pixel_to_svg/blob/master/examples/simple.py) worked fine:

Ravindra-Kanitkar commented 3 years ago

Thanks for your help! It works perfect👍