ming %!s(int64=4) %!d(string=hai) anos
pai
achega
86291fb909
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      main.py

+ 1 - 0
main.py

@@ -204,6 +204,7 @@ def file_prepare_v2(name, name_hash,text_content,image_urls):
             f.close()
         else:
             im = Image.open(requests.get(imgu, stream=True).raw)
+            im= im.convert("RGB")
             im.save(dir_photo+name_hash+"/"+str(img_num)+".jpg")
         img_num+=1
     #save text