Inkscape command line problem

Using Inkscape with other software? Talk about it here.
m2broth
Posts: 9
Joined: Thu Apr 04, 2013 8:56 pm

Inkscape command line problem

Postby m2broth » Thu Aug 27, 2015 1:12 am

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?

PaulZi
Posts: 1
Joined: Thu Oct 06, 2016 10:43 pm

Re: Inkscape command line problem

Postby PaulZi » Thu Oct 06, 2016 10:45 pm

Faced with a similar problem. I helped as follows:
/etc/php5/fpm/pool.d/www.conf:

Code: Select all

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


Return to “Inkscape & other”