Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TurtleArt/taexporthtml.py
diff options
context:
space:
mode:
Diffstat (limited to 'TurtleArt/taexporthtml.py')
-rw-r--r--TurtleArt/taexporthtml.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/TurtleArt/taexporthtml.py b/TurtleArt/taexporthtml.py
index 843b8b0..913e612 100644
--- a/TurtleArt/taexporthtml.py
+++ b/TurtleArt/taexporthtml.py
@@ -111,7 +111,10 @@ def save_html(self, tw, embed_flag=True):
HTML_GLUE['div'][1]
else:
if embed_flag:
- imgdata = image_to_base64(save_picture(self.tw.canvas),
+ tmpfile = os.path.join(get_path(tw.activity, 'instance'),
+ 'tmpfile.png')
+ save_picture(self.tw.canvas, tmpfile)
+ imgdata = image_to_base64(tmpfile,
get_path(tw.activity, 'instance'))
else:
imgdata = os.path.join(self.tw.load_save_folder, 'image')