Liking cljdoc? Tell your friends :D

oc.lib.user-avatar


source

fix-avatar-urlclj

(fix-avatar-url filestack-api-key avatar-url)

First it fixes relative URLs, it prepends our production CDN domain to it if it's relative. Then if the url is pointing to one of our happy faces, it replaces the SVG extension with PNG to have it resizable. If it's not one of our happy faces, it uses the on-the-fly resize url.

First it fixes relative URLs, it prepends our production CDN domain to it if it's relative.
Then if the url is pointing to one of our happy faces, it replaces the SVG extension with PNG
to have it resizable. If it's not one of our happy faces, it uses the on-the-fly resize url.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close