This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"application_id":"YOUR_APP_ID", | |
"src":"https://s3.amazonaws.com/img.blitline/skysmall.jpg", | |
"functions":[ | |
{ | |
"name":"image_grid", | |
"params":{ | |
"images": [ | |
"https://s3.amazonaws.com/img.blitline/skysmall.jpg", | |
"https://unsplash.it/200/300/?random", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// use jQuery shipped with Uploadcare | |
$ = uploadcare.jQuery; | |
var widget = uploadcare.MultipleWidget('input'); | |
// disable submit button | |
$('#submit').attr('disabled', true); | |
widget.onUploadComplete(function(info) { | |
// upload is complete | |
console.log(info); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<canvas id='cv'></canvas> | |
<button id='other'>other image</button> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"application_id":"YOUR_APP_ID", | |
"src":"http://cdn.blitline.com/filters/boys.jpeg", | |
"functions":[ | |
{ | |
"name":"convert_command", | |
"params":{ | |
"-function":"polynomial 3.5,-5.05,2.05,0.3", | |
"-channel":"R" | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"application_id":"your app id", | |
"src":"http://cdn.blitline.com/filters/boys.jpeg", | |
"functions":[ | |
{ | |
"name":"convert_command", | |
"params":{ | |
"-color-matrix" : "0.5 0 0 0 1 0 0 0 1" | |
}, | |
"save":{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"application_id":"yourappid", | |
"src":"http://cdn.blitline.com/filters/boys.jpeg", | |
"functions":[ | |
{ | |
"name":"convert_command", | |
"params":{ | |
"-color-matrix" : ".6 0.3 -0.3 0 47 -0 .9 .2 0 -37 .2 -.1 .4 0 -7.5 0 0 0 1 0" | |
}, | |
"save":{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"application_id": "your id", | |
"pre_process": [ | |
{ | |
"job": { | |
"pre_process": [ | |
{ | |
"job": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//magnify doubles image size | |
{ | |
"application_id":"your app id", | |
"src":"http://cdn.blitline.com/filters/boys.jpeg", | |
"functions":[ | |
{ | |
"name":"convert_command", | |
"params":{ | |
"-magnify" : "" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//-filter is not required | |
{ | |
"application_id":"your app id", | |
"src":"https://s3.amazonaws.com/img.blitline/sky.jpg", | |
"functions":[ | |
{ | |
"name":"convert_command", | |
"params":{ | |
"-resize" : "200%", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Changes XML to JSON | |
// fixed some bugs from http://davidwalsh.name/convert-xml-json | |
// October 9, 2012 | |
// Brian Hurlow | |
function xmlToJson(xml) { | |
// Create the return object | |
var obj = {}; | |
// console.log(xml.nodeType, xml.nodeName ); |