Merge pull request #231 from tiagosamaha/master
Fix use resolution argument to generate image with GSpull/222/head^2
commit
38370cf3f4
|
|
@ -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")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue