python image - ignore values in resize

2009-03-06 Thread Travis Kirstine
I have be attempting to resize (downsample) a RGB image using the python image library resize function. Everything works fine but I would like to exclude black values 0,0,0 from the calculations. I have tried creating a alpha mask based on black values then performing the resize but that only cre

Return lines in file that match string

2008-10-28 Thread Travis Kirstine
I am new to python and could use some help with a fairly easy task. I would like to return all lines in a file that have the string '' to a list. Regards, -- Travis K. Toronto, Canada "She knows there's no success like failure And th