Python Imaging Library Question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Marek Kralewski

    Python Imaging Library Question

    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


  • Thomas Guettler

    #2
    Re: Python Imaging Library Question

    Marek Kralewski schrieb:
    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



    --
    Thomas Guettler, http://www.thomas-guettler.de/
    E-Mail: guettli (*) thomas-guettler + de

    Comment

    Working...