trace a photo into vector as illustrator or flash do

Post questions on how to use or achieve an effect in Inkscape.
surferbloggy
Posts: 4
Joined: Wed Sep 04, 2013 3:35 am

trace a photo into vector as illustrator or flash do

Postby surferbloggy » Wed Sep 04, 2013 3:42 am

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

v1nce
Posts: 696
Joined: Wed Jan 13, 2010 4:36 am

Re: trace a photo into vector as illustrator or flash do

Postby v1nce » Wed Sep 04, 2013 7:39 am

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.

surferbloggy
Posts: 4
Joined: Wed Sep 04, 2013 3:35 am

Re: trace a photo into vector as illustrator or flash do

Postby surferbloggy » Wed Sep 04, 2013 8:39 am

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

Postby surferbloggy » Wed Sep 04, 2013 8:06 pm

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 :D

surferbloggy
Posts: 4
Joined: Wed Sep 04, 2013 3:35 am

Re: trace a photo into vector as illustrator or flash do

Postby surferbloggy » Wed Sep 04, 2013 8:17 pm

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


Return to “Help with using Inkscape”