By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,491 Members | 1,196 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,491 IT Pros & Developers. It's quick & easy.

dislin / PIL / cropping EPS

P: n/a
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
Jul 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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" <bu*****@urubu.freeserve.co.uk> wrote in message
news:c3**********@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

Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.