You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
first of all I wanted to say thank you for this awesome kit.
I'm using ColorKit to generate a color palette of pictures that I manually add from my photo library. Everything work good but I only have problems with pictures of my library that were not taken with my iPhone.
If I want to get the colors of pictures taken with my iPhone or a screenshot which was taken with my iPhone the function .dominantColors does not work.
Is it a format thing? or maybe I missed something.
If I send the picture per WhatsApp and then I download the same picture I can get the colors but not from the original. Photos taken with an external camera and then imported to the iPhone have also no problem at all. Only Iphone photos.
I appreciate your help, thank you very much!
Pablo.
UPDATE
I think that the problem is that ColorKit can't use .dominantColors() with pictures taken with the iPhone because they are HEIF/HEIC files. I still can't solve the problem but I'm trying to convert the image to JPEG. I don't know if that is useful because I thought UIImage also supports HEIF format.
The text was updated successfully, but these errors were encountered:
Because the cgImages' data is different, but file DominantColors.swift line 159 condition does not separate the image types. And filtered all data that were lower than 150. Changing the number 150 to a lower number will work for HEIF(like the 50 I used).
The lib resized the image, so if you can get colors, try image.dominantColorFrequencies(with: UIImage.DominantColorQuality.best), will not resize the image just using the original image.
Hello,
first of all I wanted to say thank you for this awesome kit.
I'm using ColorKit to generate a color palette of pictures that I manually add from my photo library. Everything work good but I only have problems with pictures of my library that were not taken with my iPhone.
If I want to get the colors of pictures taken with my iPhone or a screenshot which was taken with my iPhone the function .dominantColors does not work.
Is it a format thing? or maybe I missed something.
If I send the picture per WhatsApp and then I download the same picture I can get the colors but not from the original. Photos taken with an external camera and then imported to the iPhone have also no problem at all. Only Iphone photos.
I appreciate your help, thank you very much!
Pablo.
UPDATE
I think that the problem is that ColorKit can't use .dominantColors() with pictures taken with the iPhone because they are HEIF/HEIC files. I still can't solve the problem but I'm trying to convert the image to JPEG. I don't know if that is useful because I thought UIImage also supports HEIF format.
The text was updated successfully, but these errors were encountered: