Hi i need to trace a photo into vector as illustrator or flash do, but i want to use php or objective-C i don't know how to do, is it possible using inkscape?
is there Inkscape API? i need to do the trace throught php or objective-c or connecting from an app to a tool that can generate the trace
could you help me or suggest me any snippets could help me??? thank you
trace a photo into vector as illustrator or flash do
-
surferbloggy
- Posts: 4
- Joined: Wed Sep 04, 2013 3:35 am
Re: trace a photo into vector as illustrator or flash do
inkscape use potrace (maybe with some colorspace reduction before ?) so I guess that calling http://potrace.sourceforge.net/#usage using http://php.net/manual/en/function.exec.php onto a PBM, PGM, PPM, or BMP image should work.
If your source is not a bmp you could convert your image using imagemagick http://www.imagemagick.org/script/index.php
There's a ongoing project form GSOC which aims at implementing a state-of-the-art algorithm for vectorization in inkscape.
It should be available as dll only too. Maybe you could ask Vinícius dos Santos Oliveira in inkscape devel mailing list.
If your source is not a bmp you could convert your image using imagemagick http://www.imagemagick.org/script/index.php
There's a ongoing project form GSOC which aims at implementing a state-of-the-art algorithm for vectorization in inkscape.
It should be available as dll only too. Maybe you could ask Vinícius dos Santos Oliveira in inkscape devel mailing list.
-
surferbloggy
- Posts: 4
- Joined: Wed Sep 04, 2013 3:35 am
Re: trace a photo into vector as illustrator or flash do
thank you potrace is only black and white but it's a good starting point thank you bye
-
surferbloggy
- Posts: 4
- Joined: Wed Sep 04, 2013 3:35 am
Re: trace a photo into vector as illustrator or flash do
Thank you, does potrace work only in white black? maybe i need to save information about color in another way with this
http://www.coolphptools.com/color_extract
thank you
potrace is a good solution bye
http://www.coolphptools.com/color_extract
thank you
potrace is a good solution bye
-
surferbloggy
- Posts: 4
- Joined: Wed Sep 04, 2013 3:35 am
Re: trace a photo into vector as illustrator or flash do
i found this
http://php.net/manual/en/function.imagepalettecopy.php
i don't understand if it resoves and it copy the single colour is it the solution?? thank you for help
http://php.net/manual/en/function.imagepalettecopy.php
i don't understand if it resoves and it copy the single colour is it the solution?? thank you for help