Commit 956e836f authored by Yann Leboulanger's avatar Yann Leboulanger

[leon] set png background transparent when using dvipng. See #7153 in Gajim's trac.

parent e8f08708
......@@ -174,9 +174,9 @@ class LatexRenderer(Thread):
if exitcode == 0:
# convert dvi to png
log.debug('DVI OK')
exitcode = try_run(['dvipng'] + fg_str('tex') + ['-T', 'tight',
'-D', self.png_dpi, tmpfile + '.dvi', '-o', tmpfile + '.png'],
tmpdir)
exitcode = try_run(['dvipng', '-bg', 'Transparent'] + fg_str('tex')\
+ ['-T', 'tight', '-D', self.png_dpi, tmpfile + '.dvi', '-o',
tmpfile + '.png'], tmpdir)
if exitcode:
# dvipng failed, try convert
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment