From cf82e593b3754650cf9696788f86474245359e02 Mon Sep 17 00:00:00 2001 From: Team Tofler Date: Thu, 7 Jan 2016 21:07:45 +0530 Subject: [PATCH] Update output.rst render_to_png() generates totally black PNG files for some people. This was discussed on Stack Overflow (https://stackoverflow.com/questions/24476029/pygal-rendering-png-svg-black-pictures/25360101#25360101). The proposed solution (tested) is being added to the PNG section of this page. --- docs/documentation/output.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/documentation/output.rst b/docs/documentation/output.rst index a6f7907..2ea12b5 100644 --- a/docs/documentation/output.rst +++ b/docs/documentation/output.rst @@ -52,6 +52,8 @@ With cairosvg installed you can directly get the png file using ``render_to_png` ... chart.render_to_png('/tmp/chart.png') # Write the chart in the specified file +In case of rendered image turning up black, installing lxml, tinycss and cssselect should fix the issue. + Etree -----