Did I find the right examples for you? yes no

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/c/i/City-Go-Round-HEAD/citygoround/utils/screenshot.py   City-Go-Round(Download)
 
from .image import crop_and_resize_image, convert_image
from ..models import TransitApp, ImageBlob
 
def create_original_screen_shot_blob(image_bytes):
        raise Error("Could not find the original image blob for family %s. Fail." % family)
 
    resized_blob = ImageBlob(family = family)
    resized_blob.image = db.Blob(crop_and_resize_image(original_blob.image, width, height)) # defaults to PNG
    resized_blob.width = width