Comfy-Org / Comfy-Org/ComfyUI

upload image exif metadata issue bug fix

Open
#2,683 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
133k
Forks
15.7k
Avg merge
1d 7h
Merged PRs (30d)
158

Description

when i do some test, i just found this image has some warning issue with exiftool,the metadata warning appear ,and when upload on comfyUI image upload node, it will pop up some error messages like not a TIFF file(header b'http://n not valid), which i believe is the pillow python package issue. anyway, i just add the code as below in nodes.py at 1470 lines:
image_data = list(img.getdata())
image_without_exif = Image.new(img.mode, img.size)
image_without_exif.putdata(image_data)
img = image_without_exif

anyone has a better solution let me know
![65b7c6015152a](https://github.com/comfyanonymous/ComfyUI/assets/130369523/4d6c05b7-dfc0-4442-b15c-3a9e95760d32)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.