SyntaxFix
Write A Post
Hire A Developer
Questions
If you are trying to maintain the same aspect ratio, then wouldn't you resize by some percentage of the original size?
For example, half the original size
half = 0.5 out = im.resize( [int(half * s) for s in im.size] )