use resolution argument to generate image with GS

pull/231/head
Tiago Samaha Cordeiro 2021-03-24 11:22:19 -03:00 committed by Vinayak Mehta
parent 021be79bf7
commit 3a8f988740
No known key found for this signature in database
GPG Key ID: 2DE013537A15A9A4
1 changed files with 2 additions and 2 deletions

View File

@ -211,8 +211,8 @@ class Lattice(BaseParser):
from ..ext.ghostscript import Ghostscript from ..ext.ghostscript import Ghostscript
self.imagename = "".join([self.rootname, ".png"]) self.imagename = "".join([self.rootname, ".png"])
gs_call = "-q -sDEVICE=png16m -o {} -r300 {}".format( gs_call = "-q -sDEVICE=png16m -o {} -r{} {}".format(
self.imagename, self.filename self.imagename, self.resolution, self.filename
) )
gs_call = gs_call.encode().split() gs_call = gs_call.encode().split()
null = open(os.devnull, "wb") null = open(os.devnull, "wb")