For simple things such as thumbnails, you can use the GAE images API (which internally uses PIL): https://developers.google.com/appengine/docs/python/images/imageclass
from google.appengine.api import images blob = db.marcas(id).logotipo_marca_blob image = images.Image(blob) image.resize(32, 32) data = image.execute_transforms()