PNGToSVG icon indicating copy to clipboard operation
PNGToSVG copied to clipboard

Stuck at Calculating edges: 3.61%

Open arshad111 opened this issue 3 years ago • 6 comments

Hi, I have run python file using below command. python3 pngtosvg.py original.png but it show Converting image: upto 99.92% and after this it will stuck on Calculating edges: 3.61%. Pleas provide instruction if i forgot.

arshad111 avatar Mar 09 '21 14:03 arshad111

Hello,

I've tested both the executable and calling the script directly with four diferent images (~500kb, ~1MB, ~2MB and ~3MB), all of the tests finished correctly. I need some more information of your case yo help you:

  • What exact python version are you using?
  • What library versions do you have installed?
  • If posible, what image are you trying to convert?

mayuso avatar Mar 10 '21 16:03 mayuso

Hello, I have try different pngs files and working fine but one file stuck at Calculating edges: 3.61% on below lion image. Please check below details Python version : Python 3.8.5 Library versions : 0.2 Image: original

Stuck Screen Shot : Screenshot from 2021-03-11 10-45-08

One more question: Is there any option to reduce svg file size? Ex: i have convert one png which has 79 kb but after conversion svg file size is 3.2 mb.

arshad111 avatar Mar 11 '21 05:03 arshad111

Stuck in process with two other png files,please check it auc rect

arshad111 avatar Mar 11 '21 11:03 arshad111

All above three images converted successfully but its taking long time(approx 30 45 min) to convert. Please give me instruction about reduce svg file size. Ex: i have convert one png which has 79 kb but after conversion svg file size is 3.2 mb.

arshad111 avatar Mar 11 '21 14:03 arshad111

Right now there is no way to configure the call so that it produces a lighter output SVG, sorry.

This project is relatively abandoned, however, if I ever have the time to invest here, I'll try to see why some images take so long, also, if anyone is willing to improve that part, I'll gladly merge any working patch and make a new release.

Thank you :)

mayuso avatar Mar 11 '21 16:03 mayuso

Marked as enhancement as we already know this is not really stuck, but just really slow. If someone is willing to put the effort to investigate the long processing times and develop an optimization, I will merge the changes to this project.

mayuso avatar May 20 '22 22:05 mayuso