From da47821fae7ee7b2d6d89f5542e729e01d3338df Mon Sep 17 00:00:00 2001 From: Rhet Turnbull Date: Tue, 9 Feb 2021 22:17:20 -0800 Subject: [PATCH] Bug fix for --jpeg-ext, #374 --- osxphotos/_version.py | 2 +- osxphotos/cli.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/osxphotos/_version.py b/osxphotos/_version.py index 90e4236a..707c9215 100644 --- a/osxphotos/_version.py +++ b/osxphotos/_version.py @@ -1,3 +1,3 @@ """ version info """ -__version__ = "0.40.12" +__version__ = "0.40.13" diff --git a/osxphotos/cli.py b/osxphotos/cli.py index e2133e9a..44840bc8 100644 --- a/osxphotos/cli.py +++ b/osxphotos/cli.py @@ -2386,9 +2386,9 @@ def export_photo( # change the file extension to correct jpeg extension if needed file_ext = ( "." + jpeg_ext - if jpeg_ext and (photo.uti == "public.jpeg" or convert_to_jpeg) + if jpeg_ext and (photo.uti_original == "public.jpeg" or convert_to_jpeg) else ".jpeg" - if convert_to_jpeg and photo.uti != "public.jpeg" + if convert_to_jpeg and photo.uti_original != "public.jpeg" else original_filename.suffix ) original_filename = (