Fixed image saving bug

This commit is contained in:
concarne000
2024-01-23 16:10:49 +11:00
committed by GitHub
parent b028d54166
commit e080dbb6c8
+1
View File
@@ -169,6 +169,7 @@ class BingImageGrabber:
#imagefile=open(os.path.join("./ComfyUI/custom_nodes/ConCarneNode/searchcache/"+texthash+"/", filenamehash+".jpg"),'wb')
#imagefile.write(image_data)
#imagefile.close()
foundimage.convert("RGB")
foundimage.save(os.path.join("./ComfyUI/custom_nodes/ConCarneNode/searchcache/"+texthash+"/", filenamehash+".jpg"))
image = foundimage