use resolution argument to generate image with GS

This commit is contained in:
Tiago Samaha Cordeiro authored and Vinayak Mehta committed 2021-06-15 03:46:07 +05:30
1 parent 021be79bf7
commit 3a8f988740
1 file changed
+2 -2
+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")