Skip to content
Snippets Groups Projects
Commit 956e836f authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

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

parent e8f08708
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment