This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Ray Yip
Posted Sep 09 - Read on Facebook

Getting Average Color from Image.
https://framer.cloud/download/signed/ciiMg/2/?studio=1
(This example only working in Framer Studio because "Utils.randomImage()" are loading images from Unsplash.com which doesn't allow cross-origin access.)

3 Comments

Edwin Van Rijkom

Nice Ray! I've been fiddling around a little trying to get things to work from the Cloud as well. I've added an "onerror" handler that will set the returned color to bright red, and I've made sure some of the failure paths still invoked the completion handler. Last, I've set `img.crossOrigin="Anonymous"`. This seems to alleviate some of the trouble, although I am seeing some intermittent CORS failures from unsplash.com still, which I don't really get why. Tweaked version is here: https://framer.cloud/UvPQo

Guus Baggermans

I always use http://crossorigin.me/ , maybe that can help?

穆罕默德

Thanks for the share!

Read the entire post on Facebook