Skip to content

Commit 39ba708

Browse files
committed
debug
1 parent 55f379f commit 39ba708

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/api/api.py

+2
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,8 @@ def encode_pil_to_base64(image):
235235

236236
if opts.samples_format.lower() in ("jpg", "jpeg"):
237237
image.save(output_bytes, format="JPEG", exif=exif_bytes, quality=opts.jpeg_quality)
238+
exif_data = Image.open(output_bytes).getexif() # Read the image from the buffer and get its EXIF data
239+
print(exif_data) # Print the EXIF data
238240
else:
239241
image.save(output_bytes, format="WEBP", exif=exif_bytes, quality=opts.jpeg_quality)
240242

0 commit comments

Comments
 (0)