I wrote a simple implementation of PIL to convert a list of EPS files to PNG.
import Image
for infile in sys.argv[1:]:
f, e = os.path.splitext(infile)
outfile = f+".png"
try:
im = Image.open(infile)
im.save(outfile, dpi = (1000, 1000))
except IOError:
print "Error"
Although the dpi flag changes the PNG's file resolution, it doesn't increase the resolution of the im object. This means my output PNG image has very low quality. Is there a way to increase the resolution of the im object? This code doesn't work.
im = Image.open(infile, dpi = (1000, 1000))
Ideas?