Bug fix for --jpeg-ext, #374

This commit is contained in:
Rhet Turnbull 2021-02-09 22:17:20 -08:00
parent 6f38e2da49
commit da47821fae
2 changed files with 3 additions and 3 deletions

View File

@ -1,3 +1,3 @@
""" version info """
__version__ = "0.40.12"
__version__ = "0.40.13"

View File

@ -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 = (