use resolution argument to generate image with GS

This commit is contained in:
Tiago Samaha Cordeiro
2021-03-24 11:22:19 -03:00
committed by Vinayak Mehta
parent 021be79bf7
commit 3a8f988740
+2 -2
View File
@@ -211,8 +211,8 @@ class Lattice(BaseParser):
from ..ext.ghostscript import Ghostscript
self.imagename = "".join([self.rootname, ".png"])
gs_call = "-q -sDEVICE=png16m -o {} -r300 {}".format(
self.imagename, self.filename
gs_call = "-q -sDEVICE=png16m -o {} -r{} {}".format(
self.imagename, self.resolution, self.filename
)
gs_call = gs_call.encode().split()
null = open(os.devnull, "wb")