Answer the question
In order to leave comments, you need to log in
How to translate SVG to EPS and simplify SVG?
The task was set to convert many thousands of SVG files to EPS
. Also, it was required to make copies of all SVGs, in which there are only paths (path)
I use a bunch of utilities, the result is approximately the same.
I've already lost half my hair.
Question 1.
A simple call to convert SVG to EPS using
inkscape inkscape -z test.svg -E test.eps
On ubuntu and on centos, it produces EPS files that are categorically different in content
SVG source file https://www.dropbox.com/s /llfncf45kbtcdzw/armchair.svg
Centos: https://www.dropbox.com/s/gameozeqmsn7s60/armchair... 2 kb
Ubuntu: https://www.dropbox.com/s/84cau3z6dhdj2j0/armchair... 12 kb
My regular program corrected a couple of parameters and stopped working.
In particular, it changed the scale: 0.8 -0.8 scale -> 1.0 -1.0 scale
As an option - put yourself a virtual machine with centos and experiment in it. But still, why are they different?
Question 2. Why does this scale 0.8 suddenly appear
? Locally, on Ubuntu [ https://www.dropbox.com/s/84cau3z6dhdj2j0/armchair... ], I don't see this scale inside the EPS file. But when opening the EPS in Illustrator, it is 20% smaller than the original SVG image.
Here's the original SVG and two EPS side by side in Illustrator: take.ms/aPbjr
What causes an image to scale negatively? How to avoid it?
Question 3. I have an SVG that uses circle, ellipse, rect and other primitives
https://www.dropbox.com/s/loexj5l2egof3w7/wifi_logo.svg
I want to upload it to icomoon.io/app to recolor and render special font
And an incomplete picture is obtained take.ms/rL5sM
By manually processing SVG with inkscape, I got a version without primitives - it has only one complex path: https://www.dropbox.com/s/wlw2z1szf2u058a/wifi_log... To
me you need to perform such a conversion for 400 files now and do the same automatically in the future. How can you simplify SVG like this on the server in console mode, without a GUI?
I tried the file processing commands through the line
inkscape -z --verb blablabla
But inkscape does not respond in console mode to these commands. Run X11 server will not have enough resources.
They suggested converting with the help of Illustrator - but even more resources are needed for it and the platform should be changed to Windows or MacOS - in general, spaceships are obtained.
Maybe there is another way to simplify SVG?
Answer the question
In order to leave comments, you need to log in
I don't know if you've looked at Apache Batik and Apache FOP and this question is from 2006 .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question