Python Imaging Library Question

M

Marek Kralewski

Hi,

I am writing a script to convert EPS to PNG images. I need to set the
resolution (and geometry accordingly), since the rendered images are to
small. The resolution and geometry must be given as switches to the gs
command. Is there a way to overload the Ghostcript function in the
EpsImagePlugin.py file or to overload the plugin or to write a custom
plugin without interfering with the PIL?
The question hopefully seems trivial to a python programmer..

Thank you, Marek
 
T

Thomas Guettler

Marek said:
Hi,

I am writing a script to convert EPS to PNG images. I need to set the
resolution (and geometry accordingly), since the rendered images are to
small. The resolution and geometry must be given as switches to the gs
command. Is there a way to overload the Ghostcript function in the
EpsImagePlugin.py file or to overload the plugin or to write a custom
plugin without interfering with the PIL?
The question hopefully seems trivial to a python programmer..

Hi,

you can call gs yourself with e.g. the module subprocess.

Thomas
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,070
Latest member
BiogenixGummies

Latest Threads

Top