dislin / PIL / cropping EPS

Larry Bates lbates at swamisoft.com
Mon Mar 15 18:16:23 EST 2004


Take a look at imagemagick (which has python interface).

http://www.imagemagick.org/

I don't know for sure about clipping EPS, but when I
looked at it, I thought it was more powerful than PIL.

If the ultimate destination of the output is actually .PDF
instead of Word, take a look at ReportLab and ReportLab Graphics.
Depending on what the graphics are like out of dislin, you
might be able to do it all in ReportLab.

www.reportlab.org

-Larry Bates


"Duncan Smith" <buzzard at urubu.freeserve.co.uk> wrote in message
news:c32t8r$bc7$1 at newsg3.svr.pol.co.uk...
> Hello,
>          Can anyone advise me how to crop an EPS image generated by
dislin.
> I can't figure out how to crop the image before generating it.  Using PIL
to
> crop the generated image I get an IOError (apparently because I'm using
> Windows).  I could use other file formats, but I'm not too keen on the
> results I'm getting from using e.g. .tif.  Basically I need to copy
> (publication quality) images created in dislin and paste them into word
> documents (but not manually).  Cropping after pasting would be an option,
> but I haven't (yet) played around with COM enough to know if this is
easily
> done.  Cheers.
>
> Duncan
>
>





More information about the Python-list mailing list