<p style="margin-top:0in;margin-right:0in;margin-bottom:12.0pt;margin-left:0in;line-height:12.5pt;background:white;vertical-align:baseline"><span style="font-size:10pt;font-family:Arial,sans-serif">I wrote a
simple implementation of PIL to convert a list of EPS files to PNG. The output
PNG files are at a much lower resolution than required. And there seems to be
no way to fix it.</span></p>
<p class="MsoNormal">Looking at
/usr/lib64/python2.7/site-packages/PIL/EpsImagePlugin.py this is implemented by
calling ghostscript:</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"># Build ghostscript command</p>
<p class="MsoNormal">command = ["gs",</p>
<p class="MsoNormal">
"-q",
# quite mode</p>
<p class="MsoNormal">
"-g%dx%d" % size,
# set output geometry (pixels)</p>
<p class="MsoNormal">
"-dNOPAUSE -dSAFER",
# don't pause between pages, safe mode</p>
<p class="MsoNormal">
"-sDEVICE=ppmraw",
# ppm driver</p>
<p class="MsoNormal">
"-sOutputFile=%s" % file,# output file</p>
<p class="MsoNormal"> "-
>/dev/null 2>/dev/null"]</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">the size option only changes the output figure size but does
not rescale it, I can make the output image larger, but not higher resolution
because the EPS file is being imported at a low resolution.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Any help would be appreciated.</p>
<p class="MsoNormal"><br>
Thanks</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Brandon</p>