document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. import PIL
  2. from PIL import Image
  3.  
  4. basewidth = 300
  5. img = Image.open(\'test.jpg\')
  6. wpercent = (basewidth/float(img.size[0]))
  7. hsize = int((float(img.size[1])*float(wpercent)))
  8. img = img.resize((basewidth,hsize), PIL.Image.ANTIALIAS)
  9. img.save(\'ResultOfTest.jpg\')
');