Resize Image Simple Python Script to Resize All Images in a Directory The parameter takes only the width, and it will scale the height with that. python resize.py c:\image\ 640