import sys
from PIL import Image
im=Image.open(sys.argv[1]); box=tuple(int(x) for x in sys.argv[3:7])
c=im.crop(box); c=c.resize((c.width*5,c.height*5),Image.NEAREST); c.save(sys.argv[2]); print("saved",c.size)
