> Ideally, you should use whatever color is going to be in the background when you show the image.<br><br>Agreed, but the problem is I'm making a collage of pictures where the new pictures are placed above previous pictures, so there's no one consistent background color.<br>
<br>> Even better would be if you could blend it with a transparent
background, and show it that way, <br>> but that would require an alpha
channel, and I don't think jpeg supports that.<br><br>I'm converting to BMP and assigning an alpha channel so this is indeed a possibility. Another thought I had was making a drop shadow effect, which the thin gray edge outside of my white border already approximates.<br>
<br>Interestingly, when I've tried making a transparent canvas in PIL (which I'd have to do to add an alpha border) in the past, I consistently got weird artifacts in the transparent areas. The workaround I used was to make a small blank PNG that was pure alpha and resize it as necessary.<br>
<br>If I test out the alpha border I'll post back to this thread.<br><br><br><br><br>