From da100f93a9b849ca4750336d7f90e9023e39dd07 Mon Sep 17 00:00:00 2001 From: Rhet Turnbull Date: Mon, 12 Oct 2020 05:59:44 -0700 Subject: [PATCH] Fix for issue #234 --- osxphotos/_version.py | 2 +- osxphotos/imageconverter.py | 10 +++------- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/osxphotos/_version.py b/osxphotos/_version.py index c46383c3..5212b6c7 100644 --- a/osxphotos/_version.py +++ b/osxphotos/_version.py @@ -1,4 +1,4 @@ """ version info """ -__version__ = "0.35.1" +__version__ = "0.35.2" diff --git a/osxphotos/imageconverter.py b/osxphotos/imageconverter.py index 061dd3da..cffbc6ab 100644 --- a/osxphotos/imageconverter.py +++ b/osxphotos/imageconverter.py @@ -11,7 +11,6 @@ import Metal import Quartz from Cocoa import NSURL from Foundation import NSDictionary -from py import path # needed to capture system-level stderr from wurlitzer import pipes @@ -93,13 +92,10 @@ class ImageConverter: logging.debug(f"Could not create CIImage for {input_path}") return False - output_colorspace = ( - input_image.colorSpace() - if input_image.colorSpace() - else Quartz.CGColorSpaceCreateWithName( - Quartz.CoreGraphics.kCGColorSpaceSRGB - ) + output_colorspace = input_image.colorSpace() or Quartz.CGColorSpaceCreateWithName( + Quartz.CoreGraphics.kCGColorSpaceSRGB ) + output_options = NSDictionary.dictionaryWithDictionary_( {"kCGImageDestinationLossyCompressionQuality": compression_quality} )