Skip to content

Instantly share code, notes, and snippets.

@WFT
WFT / b64_image_utils.py
Created January 27, 2014 05:30
base64 PIL processing
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):