import Image from get_png import getpng def transparent(infile): #open png,covert it into 'RGBA mode',resize it,get data then make a datalist datalist=list(Image.open(infile,'r').convert('RGBA').resize((1000,1000),Image.BILINEAR).getdata()) #color(0,