liusida / ComfyUI-Login

A custom node that implements basic login for ComfyUI
MIT License
92 stars 12 forks source link

changed img open to use node_helpers function to still catch errors. #7

Closed shawnington closed 6 months ago

shawnington commented 6 months ago

changed

img = Image.open(io.BytesIO(decrypted_data)) 

to

img = node_helpers.pillow(Image.open, io.BytesIO(decrypted_data)) 

this allows the fixes that allow proper opening of files that cause pillow errors to still be applied.