I had downloaded 2012 id pics but couldn’t view them due to the following error . Error interpreting JPEG image file (Not a JPEG file: starts with 0x89 0x50)
On googling I found out that the image had to be renamed as a ‘.png file’ . But I couldnt do them manually as there are 700 odd id pics. Hope this helps.
import os os.chdir('/home/manoj/Downloads/2012IDPics/') idpics = os.listdir(os.getcwd()) for idpic in idpics: os.rename(idpic , idpic[:-3] + 'png')
Hope that helps.
P.S: Going through highly disappointing times . Hoping for something substantial to work on.