import Image IMG1 = Image.open('C:\\Documents and Settings\\Owner\\My Documents\\My Pictures\\mars\\realscrap0.bmp') IMG2 = Image.open('C:\\Documents and Settings\\Owner\\My Documents\\My Pictures\\mars\\realscrap1.bmp') IMG3 = Image.open('C:\\Documents and Settings\\Owner\\My Documents\\My Pictures\\mars\\realscrap2.bmp') IMG4 = Image.open('C:\\Documents and Settings\\Owner\\My Documents\\My Pictures\\mars\\realscrap3.bmp') IMG5 = Image.open('C:\\Documents and Settings\\Owner\\My Documents\\My Pictures\\mars\\realscrap4.bmp') IMG6 = Image.open('C:\\Documents and Settings\\Owner\\My Documents\\My Pictures\\mars\\realscrap5.bmp') IMG7 = Image.open('C:\\Documents and Settings\\Owner\\My Documents\\My Pictures\\mars\\realscrap6.bmp') IMG8 = Image.open('C:\\Documents and Settings\\Owner\\My Documents\\My Pictures\\mars\\realscrap7.bmp') IMG9 = Image.open('C:\\Documents and Settings\\Owner\\My Documents\\My Pictures\\mars\\realscrap8.bmp') newimage1 = Image.merge("RGB",(IMG1, IMG4, IMG7)) newimage2 = Image.merge("RGB",(IMG2, IMG5, IMG8)) newimage3 = Image.merge("RGB",(IMG3, IMG6, IMG9)) #newimage1.save('C:\\Documents and Settings\\Owner\\My Documents\\My Pictures\\mars\\new1.bmp') #newimage2.save('C:\\Documents and Settings\\Owner\\My Documents\\My Pictures\\mars\\new2.bmp') #newimage3.save('C:\\Documents and Settings\\Owner\\My Documents\\My Pictures\\mars\\new3.bmp') bwnew1 = newimage1.convert('L') bwnew2 = newimage2.convert('L') bwnew3 = newimage3.convert('L') way_new = Image.merge("RGB",(bwnew1, bwnew2, bwnew3)) way_new.save('C:\\Documents and Settings\\Owner\\My Documents\\My Pictures\\mars\\way_new.bmp') del IMG1,IMG2 ,IMG3 ,IMG4 ,IMG5 ,IMG6 ,IMG7,IMG8 ,IMG9 ,newimage1 ,newimage2 ,newimage3 ,bwnew1 ,bwnew2 ,bwnew3 ,way_new