diff options
Diffstat (limited to 'presentty/rst.py')
-rw-r--r-- | presentty/rst.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/presentty/rst.py b/presentty/rst.py index 8368a6a..3c55f1e 100644 --- a/presentty/rst.py +++ b/presentty/rst.py | |||
@@ -306,8 +306,10 @@ class UrwidTranslator(docutils.nodes.GenericNodeVisitor): | |||
306 | if not PIL: | 306 | if not PIL: |
307 | return | 307 | return |
308 | uri = node['uri'] | 308 | uri = node['uri'] |
309 | scale = float(node.get('scale', 100))/100.0 | ||
309 | fn = os.path.join(self.basedir, uri) | 310 | fn = os.path.join(self.basedir, uri) |
310 | w = image.ANSIImage(fn, self.hinter) | 311 | w = image.ANSIImage(fn, self.hinter, scale=scale, |
312 | background=self.palette['_default'].background) | ||
311 | self._append(node, w, 'pack') | 313 | self._append(node, w, 'pack') |
312 | 314 | ||
313 | def visit_ansi(self, node): | 315 | def visit_ansi(self, node): |