Searched refs:im (Results 1 – 1 of 1) sorted by relevance
16 im = Image.open(infile) variable17 if im.mode == 'RGB':18 im.save(outfile)19 elif im.mode == 'RGBA':50 im.size[0] * im.size[1] * 4),56 im.size[0],57 im.size[1],70 data = im.tostring()71 for j in range(im.size[1]-1, -1, -1): # rows bottom-to-top72 for i in range(j*im.size[0]*4, (j+1)*im.size[0]*4, 4):[all …]