Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TurtleArt/tautils.py
diff options
context:
space:
mode:
Diffstat (limited to 'TurtleArt/tautils.py')
-rw-r--r--TurtleArt/tautils.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/TurtleArt/tautils.py b/TurtleArt/tautils.py
index 2b7b230..0486311 100644
--- a/TurtleArt/tautils.py
+++ b/TurtleArt/tautils.py
@@ -296,20 +296,18 @@ def image_to_base64(pixbuf, path_name):
file_handle = open(base64, 'r')
data = file_handle.read()
file_handle.close()
- print 'image to base64:' + file_name
return data
def base64_to_image(data, path_name):
""" Convert base64-encoded data to an image """
base64 = os.path.join(path_name, 'base64tmp')
- file_handle = open(_base64, 'w')
+ file_handle = open(base64, 'w')
file_handle.write(data)
file_handle.close()
file_name = os.path.join(path_name, 'imagetmp.png')
cmd = "base64 -d <" + base64 + ">" + file_name
subprocess.check_call(cmd, shell=True)
- print 'base64 to image:' + file_name
return file_name