Bug fix for --jpeg-ext, #374
This commit is contained in:
@@ -1,3 +1,3 @@
|
|||||||
""" version info """
|
""" 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
|
# change the file extension to correct jpeg extension if needed
|
||||||
file_ext = (
|
file_ext = (
|
||||||
"." + jpeg_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"
|
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
|
else original_filename.suffix
|
||||||
)
|
)
|
||||||
original_filename = (
|
original_filename = (
|
||||||
|
|||||||
Reference in New Issue
Block a user