Inkscape.org
Beyond the Basics Converting PNG to SVG by shelling inkscape
  1. #1
    SteveScott929 SteveScott929 @SteveScott929

    Hello.

    I am working on converting PNB files to SVG using inkscape.  I tested with shelling the command below and it works fine when I am logged into our staging server.  When the same code gets called from our  ASP.NET code, it hangs up.  On the staging server I see 2 processes get started up: inkscape.com and inkscape.exe .  I am wondering if the code is posting a dialog, I saw it the first time I ran the code.  The app pool is configured to run as "ApplicationPoolIdentity" , so I cannot login as that user to test this.

     

    Command: inkscape jeff.png --export-plain-svg=jeff.svg -z

     

     

     

     

     

  2. #2
    Maren Hachmann Maren Hachmann @Moini

    First things first: Are you trying to vectorize a raster image by saving it as SVG? That will not work to convert the object into paths.

  3. #3
    SteveScott929 SteveScott929 @SteveScott929

    I apologize if my answer doesn't make sense, I am very new to images, but I have been developing applications for quite a while.  In short, we have a phone app that captures a signature when someone signs for a delivery.  This image comes in as a PNG.  I have been tasked with taking these PNG files and converting them to a SVG file, keeping/storing 2 seperate files.

    Does that make sense ?

     

  4. #4
    Maren Hachmann Maren Hachmann @Moini

    I'd recommend using a command line program, such as autotrace.

    https://github.com/autotrace/autotrace

  5. #5
    Maren Hachmann Maren Hachmann @Moini

    (That is, if the signature drawing is not pressure sensitive, like those of our mail service guys)

  6. #6
    SteveScott929 SteveScott929 @SteveScott929

    Thank you for the reply, I will take a look at Auto Trace.  Any idea what is happening when I shell InkScape ?  It works correctly ( or at least seems to ) when I shell it under my account.  An SVC file gets created.  When called via our website , it seems to hang when the shell process gets started.

  7. #7
    Maren Hachmann Maren Hachmann @Moini

    If both processes you describe are running on the server, with the same Inkscape program, I'd look into permissions.

    I'd also look at the error logs.

     

    If you mean running on your own computer vs. on the server, I'd look into command line usage a bit deeper:

    -z isn't required. I think the -l option has only been added recently, you might like to compare version numbers.

Inkscape Inkscape.org Inkscape Forum Beyond the Basics Converting PNG to SVG by shelling inkscape