Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

convert format png to csv and save

This is my code that loads the pictures from the folder and lists their parameters sequentially. I need to not parse the parameters but save them as an csv file.How would you solve it.You can help me

img_path = 'C:\\Users\\Pifko\\Desktop\\bakalarka\\ffmpeg-20181107-0c6d4e7-win64-static\\ffmpeg-20181107-0c6d4e7-win64-static\\bin\\all'

    files = os.listdir(img_path)

    for file in files:
        file = os.path.join(img_path,file)
        img_data = open(file, 'rb').read()
        print(post_image(img_data))
        time.sleep(3)

Comments