Mobile app version of vmapp.org
Login or Join
Caterina889

: Extract clipping path from EPS (without Adobe Suite) I've been supplied a bunch of product shots in EPS format. Having seen the shots used in various publications I had a hunch that they had

@Caterina889

Posted in: #Eps #Path #Scribus #Svg #Vector

I've been supplied a bunch of product shots in EPS format. Having seen the shots used in various publications I had a hunch that they had already been isolated.

Simply opening the files in GIMP reveals no path info but nice high-res images.

Placing the file as an image in a Scribus file provides the "Extended image properties" option and I can see a named path to define as a clipping path. I'd be able to use the files as-is in my publications except that the raster info is distinctly low res (this is probably the tiff preview part of the EPS)
Choosing the path shows that the raster image size is much smaller than the path anyway.

As GIMP saves path info as svg I've tried opening the files in Inkscape they import like opening a pdf and I get no path info. Simply renaming an EPS file with a .svg extension doesn't work.

Converting an EPS to pdf using various command line tools either gives me a purely raster pdf or one that crashes Scribus on import. I've tried "pstill", "epstopdf" and "imagemagick" with a whole buch of options and switches.
Acrobat pro running in a VM doesn't like the resultant pdfs either.

To be clear, I need to use high-res images in eventual pdf output. Usually I'd create the clipping path in GIMP, export a version as TIFF and produce my pdf in Scribus. My OS is Xubuntu and I don't have access to Adobe software (except Acrobat pro for proofing, running in a VM)

In this case it looks like I'll be repeating the job of creating the clipping paths - which sucks!

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Caterina889

1 Comments

Sorted by latest first Latest Oldest Best

 

@Turnbaugh909

Posting the question prompted one last push. A Scribus mantis report gave me the search string "extract SVG imagemagick" which leads to this ImageMagick board post.

So running identify -verbose "MySupplied.eps" gives me output which includes

Clipping path:
<?xml version="1.0" encoding="iso-8859-1"?>
<svg width="712" height="877">
<g>
<path style="fill:#00000000;stroke:#00000000;stroke-width:0;stroke-antialiasing:false" d="
M 90.2227,594.411
L 92.4067,407.755
L 94.0867,270.492
...
(Loads more of this type of output)
...
C 91.2307,207.657 91.2307,206.313 94.7587,206.649 Z
"/>
</g>
</svg>


Creating a new file, pasting in the part after "Clipping path:" and saving as svg gives me just the path which I can now import back into GIMP.

Harder than it need be but an answer for now nonetheless. I'd still love to hear of a slicker route if one's out there.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme