from thummer.utils import get_thumbnail thumbnail = get_thumbnail('http://www.example.com/', '400x400')