Skip to content

Commit

Permalink
Group EXIF info
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Jan 30, 2025
1 parent d0b4f70 commit cb383ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/PIL/AvifImagePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def _open(self) -> None:
)

# Get info from decoder
width, height, n_frames, mode, icc, exif, xmp, exif_orientation = (
width, height, n_frames, mode, icc, exif, exif_orientation, xmp = (
self._decoder.get_info()
)
self._size = width, height
Expand Down
6 changes: 3 additions & 3 deletions src/_avif.c
Original file line number Diff line number Diff line change
Expand Up @@ -777,15 +777,15 @@ _decoder_get_info(AvifDecoderObject *self) {
}

ret = Py_BuildValue(
"IIIsSSSI",
"IIIsSSIS",
image->width,
image->height,
decoder->imageCount,
self->mode,
NULL == icc ? Py_None : icc,
NULL == exif ? Py_None : exif,
NULL == xmp ? Py_None : xmp,
irot_imir_to_exif_orientation(image)
irot_imir_to_exif_orientation(image),
NULL == xmp ? Py_None : xmp
);

Py_XDECREF(xmp);
Expand Down

0 comments on commit cb383ca

Please sign in to comment.