ColorKit
ColorKit copied to clipboard
EXC_BAD_ACCESS when using dominantColors() with default arguments
When trying to fetch dominant colors from some images an exception is raised.

File: DominantColors.swift line 159
This is the image that's causing crash

In my code I just called the dominantColors() method with default arguments.
Me too. Did you find a solution ?
@sgousseau Fixed in #22
Hi @wiencheck. I still get a crash in master branch. This is sample of code for previously mentioned image:
let url = URL(string: "https://user-images.githubusercontent.com/25985996/164407771-cbec02a2-7dc4-49ce-980b-a1f1b86d6d17.jpeg")!
let (data, _) = try await URLSession.shared.data(from: url)
let colors = try UIImage(data: data)!.dominantColors(with: .high)
There is no crash for .low and .fair qualities. Only for .high and .best.