The API still fails for CMYK jpg when the compression value is 1.0 (14.5). CIContext can only work with RGB -> it doesn't fail.
heifImageDataUsingCIContext(at: url, compressionQuality: 0.99) // 648046 bytes
heifImageDataUsingCIContext(at: url, compressionQuality: 1.0) // 1058444 bytes
heifImageDataUsingDestination(at: url, compressionQuality: 0.99) // 645421 bytes
heifImageDataUsingDestination(at: url, compressionQuality: 1.0) // nil
Topic:
Media Technologies
SubTopic:
General
Tags: