bedovyy / ComfyUI_NAIDGenerator

NovelAI Diffusion generator for ComfyUI
GNU General Public License v3.0
42 stars 8 forks source link

Error occurs when requesting images with a width greater than 1024 pixels #18

Closed moon90175 closed 1 month ago

moon90175 commented 1 month ago

Hello, I recently discovered that when requesting images with a width greater than 1024 pixels, their metadata becomes corrupted. When I try to read the metadata using PNG info, I get the error message: 'Error -3 while decompressing data: invalid distance too far back. Compressed file ended before the end-of-stream marker was reached'. Then, the metadata I'm able to read is all jumbled text. Interestingly, everything works normally as long as the image width is less than 1024 pixels. If there's a way to fix this, I would be very grateful.

moon90175 commented 1 month ago

To further clarify, the image metadata is normal in NAI_autosave, but the error occurs after going through ComfyUI's built-in save_image function, which is when the image metadata becomes corrupted. Moreover, this error only happens with images wider than 1024 pixels.

bedovyy commented 1 month ago

I am not sure about that, because NAI_autosave has exif info and png by built-in Save Image node has ComfyUI workflow. (It still has metadata in stealth png info, but PNG info on Forge just shows ComfyUI workflow, and that why I keep original image as NAI_autosave)

Which PNG info did you use? Could you provide corruped image here or bedovyy@gmail.com?

moon90175 commented 1 month ago

I just tried again and found that the problem resolved itself! It's very likely that the issue was unrelated to the plugin and was instead a connection problem. Thank you for your response!