Cognitives

Cognitives.io Documentation

Welcome to the Cognitives developer hub. You'll find comprehensive guides and documentation to help you start working with Cognitives as quickly as possible, as well as support if you get stuck. Let's jump right in!

_Media.getMediaUrl( mediaArr, width, height, options)

Function to get the media's cloudinary URL.

{% set media = _Media.getMediaUrl(profileMediaArr, 80, 80, {radius: 'max', gravity: 'face', 'crop': 'thumb', 'type' : 'user'})%}

Parameters Details

Parameter
Type
Required
Description

profileMediaArr

object

yes

Media Array

width

int

no

Width of the media

height

int

no

Height of the media

options

object

no

Media params

Example Response

Media URL

http://res.cloudinary.com/cognitives/image/upload/v1479377416/mt0jr5y3xvvm6yxgjpor.jpg

_Media.getMediaUrl( mediaArr, width, height, options)