>>8120638I got it to work by just changing a few lines to
> image = Image.new('RGB', (int(targetWidth*0.5), int(targetHeight*0.5)))You'll probably have to change the way the stupid square is made. These black bars you get around the top and bottom of the image don't comport to the pixel grid of the rest of the image when you mess around with the aspect ratio, so somewhere down the line you'll have to make this code generate a right-sized emblem instead of copying and pasting an emblem from a pre-existing jpeg like we're doing.