_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

ParameterTypeRequiredDescription
profileMediaArrobjectyesMedia Array
widthintnoWidth of the media
heightintnoHeight of the media
optionsobjectnoMedia params

Example Response

Media URL

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