But I put it off since I was already busy not learning Django...
Then the other day I realized I could just do it in Python using the Python Imaging Library. A few minutes later and it was done.
from PIL import Image
src = sys.argv
dst = 'output.jpg'
orig = Image.open(src)
thumb = orig.resize((450,321))
new = Image.new('RGB', (1500,1500))
for j in range(5):
for i in range(5):
Thanks to my friend, the Python Challenge, for making me spend so much time with dear old PIL back in the day.