Here are the examples of the python api web.utils.shrunkImage taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
2 Examples
3
Example 1
Project: SchoolIdolAPI Source File: importbasics.py
def downloadBestWikiaImage(url):
url2 = url.split('/revision')[0]
file1 = downloadFile(url)
print 'File 1 Downloaded. ',; sys.stdout.flush()
file2 = downloadFile(url2)
print 'File 2 Downloaded. ',; sys.stdout.flush()
if file1.width > file2.width:
return shrunkImage(file1, url)
return shrunkImage(file2, url2)
0
Example 2
Project: SchoolIdolAPI Source File: importbasics.py
def downloadShrunkedImage(url):
downloaded = downloadFile(url)
return shrunkImage(downloaded, url)