Cut and paste an EPS file

Piet van Oostrum piet at cs.uu.nl
Sat Dec 3 05:12:06 EST 2005


>>>>> "John Henry" <john106henry at hotmail.com> (JH) wrote:

>JH> I am looking for a Python tookit that will enable me to cut section of
>JH> a picture out from an EPS file and create another EPS file.

>JH> I am using a proprietary package for doing certain engineering
>JH> calculations.  It creates single page x-y line plots that has too much
>JH> blank spaces around the plotted area located at the top 2/3 of the
>JH> page.  I like to be  "cut" that white space out by extracting the image
>JH> out and may be scale it up - while keeping the bottom 1/3 unchanged.

If you just want to remove the spurious whitespace (i.e. crop the picture)
you can do this with ghostscript. Look for a script ps2eps.
-- 
Piet van Oostrum <piet at cs.uu.nl>
URL: http://www.cs.uu.nl/~piet [PGP 8DAE142BE17999C4]
Private email: piet at vanoostrum.org



More information about the Python-list mailing list