Skip to content

Commit

Permalink
Fixed condition
Browse files Browse the repository at this point in the history
  • Loading branch information
bsekachev committed Nov 6, 2023
1 parent 1e2be21 commit f5a9860
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cvat/apps/engine/media_extractors.py
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ def save_as_chunk(self, images: Iterable[tuple[Image.Image|io.IOBase|str, str, s
if has_exif_rotation(image):
rot_image = ImageOps.exif_transpose(image)
try:
if rot_image.format == 'TIFF':
if image.format == 'TIFF':
# https://pillow.readthedocs.io/en/stable/handbook/image-file-formats.html
# use loseless lzw compression for tiff images
rot_image.save(output, format='TIFF', compression='tiff_lzw')
Expand Down

0 comments on commit f5a9860

Please sign in to comment.