How can I get the outline of the image as a CGPath
?
For example, how can I get the outline of the Google logo (which has an transparent background). This might be slightly complex case. So a solution to handle less complex scenarios will work (for me) as well.