write infotext to gif image as comment

This commit is contained in:
AUTOMATIC1111 2023-09-30 09:34:50 +03:00
parent 0c71967a53
commit ab63054f95

View File

@ -561,6 +561,8 @@ def save_image_with_geninfo(image, geninfo, filename, extension=None, existing_p
})
piexif.insert(exif_bytes, filename)
elif extension.lower() == ".gif":
image.save(filename, format=image_format, comment=geninfo)
else:
image.save(filename, format=image_format, quality=opts.jpeg_quality)