This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Image | |
from cStringIO import StringIO | |
import base64 | |
def combine_b64(top, bottom, x, y): | |
a = b64_to_Image(top) | |
b = b64_to_Image(bottom) | |
return Image_to_b64(combine(a, b, x, y)) | |
def Image_to_b64(img): |
NewerOlder