Page 1 of 1

Inkscape command line problem

Posted: Thu Aug 27, 2015 1:12 am
by m2broth
I tried to convert EPS file to SVG using php script(shell_exec function).
I used next command:

Code: Select all

inkscape epsFile.eps -l svgFile.svg -z

From the php script the inkscape returns an error:

parser error : Start tag expected, '<' not found
%!PS-Adobe-3.0 EPSF-3.0

epsFile.eps cannot be opened (does not exist or not a valid SVG file)

But inkscape converting successfully from the ubuntu terminal (using the same command as in the script).

What is the problem with running eps converting from the php script?

Re: Inkscape command line problem

Posted: Thu Oct 06, 2016 10:45 pm
by PaulZi
Faced with a similar problem. I helped as follows:

Code: Select all

env[PATH] = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin