cloudinary

cloudinary / UploadFileToCloudinary / 0.1.1

README.md

Overview

Upload an image to Cloudinary

Usage

Before using this algorithm, you must first configure your Cloudinary credentials via https://algorithmia.com/algorithms/cloudinary/ConfigureCloudinary

Input

Option 1: a bare URL or data:// URI

"https://upload.wikimedia.org/wikipedia/commons/4/4e/Wiki-black.png"

Option 2: a 'file' parameter, and any other upload options

Only the 'file' parameter (a public URL or data:// URI) is required, all others are optional as described in https://cloudinary.com/documentation/image_upload_api_reference#upload

{
  "file":"https://upload.wikimedia.org/wikipedia/commons/4/4e/Wiki-black.png",
  "public_id":"wikidark",
  "tags":["wikipedia","dark","test"],
	...
}

Output

Cloudinary's response, e.g.

{
  "public_id": "wikidark",
  "version": 1312461204,
  "width": 2000
  "height": 1825,
  "format": "png",
  "bytes": 848129,       
  "url": "https://res.cloudinary.com/demo/image/upload/v1312461204/wikidark.jpg"
}