Fix for issue #234
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
""" version info """
|
""" version info """
|
||||||
|
|
||||||
__version__ = "0.35.1"
|
__version__ = "0.35.2"
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ import Metal
|
|||||||
import Quartz
|
import Quartz
|
||||||
from Cocoa import NSURL
|
from Cocoa import NSURL
|
||||||
from Foundation import NSDictionary
|
from Foundation import NSDictionary
|
||||||
from py import path
|
|
||||||
|
|
||||||
# needed to capture system-level stderr
|
# needed to capture system-level stderr
|
||||||
from wurlitzer import pipes
|
from wurlitzer import pipes
|
||||||
@@ -93,13 +92,10 @@ class ImageConverter:
|
|||||||
logging.debug(f"Could not create CIImage for {input_path}")
|
logging.debug(f"Could not create CIImage for {input_path}")
|
||||||
return False
|
return False
|
||||||
|
|
||||||
output_colorspace = (
|
output_colorspace = input_image.colorSpace() or Quartz.CGColorSpaceCreateWithName(
|
||||||
input_image.colorSpace()
|
Quartz.CoreGraphics.kCGColorSpaceSRGB
|
||||||
if input_image.colorSpace()
|
|
||||||
else Quartz.CGColorSpaceCreateWithName(
|
|
||||||
Quartz.CoreGraphics.kCGColorSpaceSRGB
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
|
|
||||||
output_options = NSDictionary.dictionaryWithDictionary_(
|
output_options = NSDictionary.dictionaryWithDictionary_(
|
||||||
{"kCGImageDestinationLossyCompressionQuality": compression_quality}
|
{"kCGImageDestinationLossyCompressionQuality": compression_quality}
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user