I've been  downsampling  RGB images using pil, but know I would like to exclude black 0,0,0 values from the resize calculations.  I was hoping that  applying a alapha mask to black areas and creating RGBA image then performing the resample would fix the issue but no such luck.  <br>
<br>any ideas?<br>