Skip to content

Instantly share code, notes, and snippets.

# -*- coding: utf-8 -*-
import Image
def resize_and_crop(img_path, modified_path, size, crop_type='top'):
"""
Resize and crop an image to fit the specified size.
args:
img_path: path for the image to resize.
We couldn’t find that file to show.
We couldn’t find that file to show.
We couldn’t find that file to show.