Bug fix for --jpeg-ext, #374
This commit is contained in:
parent
6f38e2da49
commit
da47821fae
@ -1,3 +1,3 @@
|
||||
""" version info """
|
||||
|
||||
__version__ = "0.40.12"
|
||||
__version__ = "0.40.13"
|
||||
|
||||
@ -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 = (
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user