20 questions
0
votes
1
answer
129
views
PNG image to vector graphic conversion method with recognition of 1px lines?
I am trying to find a way to convert a .png image with 1px lines to a vector file. The issue I am having is that my approaches are very inconsistent due to the thin lines I am trying to recognize.
One ...
1
vote
1
answer
117
views
Outer edge path of raster image
I am asking for advice on the easiest way to create a code that will generate a path (SVG) of the outline of a PNG image that has transparency. It can be a Python script, or command line commands (...
1
vote
0
answers
329
views
Why is edge detection potraces default and how can I change that?
I have this as an example image:
I use Python3 and PIL to convert it to a BMP so I can run these commands in a shell ->
Python:
from PIL import Image
img = Image.open("./test3.png")....
1
vote
1
answer
866
views
Images.png Manipulation to SVG in C#
iam using Imagemagick & potrace in c# to convert png to pnm and then to svg but unfortunately the SVG File comes with out colour!
how i can solve the colour problem? should i use another converter?...
0
votes
1
answer
603
views
Extract contour of imageinto svg
I have png-images of a grayscale circle and background alpha
I would like to extract the 50% contour (only the diagonal line) and export it as a path into an svg-image. Until now I tried to do this ...
0
votes
0
answers
465
views
Export svg code to .svg file then upload local?
My code:
var files = jQuery('#cargatulogo')[0].files;
Potrace.loadImageFromFile(files[0]);
Potrace.process(function () {
svg = Potrace.getSVG(0.8);
console.log(svg);
});
result console.log(...
2
votes
0
answers
2k
views
How to convert PNG/JPEG images to svg with ImageMagick?
It seems that with potrace installed, I can just run magick convert x.png x.svg or magick convert x.jpg x.svg.However this just returns a deformed image in black and white, and I need the svg image to ...
1
vote
0
answers
73
views
Replace positional argument with data
I am working on project which uses potrace which convert format .bmp to .svg and the its terminal code is
potrace <input bmp file path> --svg -o <output svg filename>
The input .bmp ...
1
vote
0
answers
1k
views
How to get straight lines svg from Potrace
Given an greyscale image already skeletonized by skimage.morphology.skeletonize or the bool array obtained.
Original Image
I'm trying to get an exact replica of image the in svg using Lines or Bézier ...
0
votes
1
answer
517
views
PyPotrace pip Install Error on Jupyter Notebook
I am trying to install potrace in my jupyter notebook virtual env but I am running into this error code. I have looked around for any known fixes on jupyter notebook but I can't find any, does anyone ...
-1
votes
1
answer
499
views
Need help setting up Potrace for use in C++
I want to make a program that uses Potrace to convert bitmap images to SVG images but first I need to figure out how to install it properly. Currently, I got the precompiled version but the folder ...
0
votes
1
answer
2k
views
How to make fontforge a python extension
I've installed font-forge for windows 10. I am currently using python 3.7 and I want to convert image to font. So what I am trying to do is to convert image to .svg using Potrace then converting .svg ...
0
votes
0
answers
932
views
Converting any common image type to a printable dxf
I have used a series of CLI statements to take any (simple) picture to a printable dxf file.
I have used a mixture of ImageMagick and potrace to get this to work as I like, however, I would like to ...
2
votes
2
answers
208
views
How to use java for running an executable file portace to generate svg file from bitmap file
I have looked up on how to run an executable in java via Runtime process builder but it does not work.
My code is as follows ...
String command = "potrace --svg mb-finer-19.pbm -o mb-finer-...
0
votes
1
answer
599
views
"Unhandled promise rejection TypeMismatchError" in internet explorer 11
I am using a port for javascript bases on potrace: https://github.com/kilobtye/potrace
this library converts images to svg
Everything works except for(ofcourse...) internet explorer 11.
i get the ...