Browse Source

rgba to rgb

ming 3 years ago
parent
commit
86291fb909
1 changed files with 1 additions and 0 deletions
  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