Skip to content

Instantly share code, notes, and snippets.

View blitline-dev's full-sized avatar

Blitline Developers blitline-dev

View GitHub Profile
@blitline-dev
blitline-dev / fun_example.js
Created February 1, 2019 22:38
Screenshot Home
{
"application_id": "YOUR_APP_ID",
"src": "http://www.blitline.com/v3/home",
"src_type": "screen_shot_url",
"src_data": {
"delay": 8000,
"viewport" : "1240x4795"
},
"functions": [
{
@blitline-dev
blitline-dev / fun_example.js
Created February 1, 2019 22:13
Single Page PDF Sceenshot
{
"application_id": "YOUR_APP_ID",
"src": "http://www.blitline.com/v3/home",
"src_type": "screen_shot_url",
"src_data": {
"delay": 3000,
"viewport": "1800x4795",
"chrome_render": true
},
"functions": [{
{
"application_id":"YOUR_APP_ID",
"v" : 1.21,
"src":"https://s3.amazonaws.com/blitdoc/jpgs/musk.jpg",
"functions":[
{
"name":"remove_background",
"params":{
},
"save":{
{
"application_id": "YOUR_APP_ID",
"src": "https://s3.amazonaws.com/img.blitline/sky.jpg",
"v" : 1.22,
"functions": [
{
"name": "resize_to_fit",
"params" : {
"width" : 200
},
{
"application_id":"YOUR_APP_ID",
"src":"https://s3.amazonaws.com/blitdoc/docx/Contoso.xlsx",
"get_tika" : "true",
"v" : 1.22,
"functions":[
{
"name":"resize_to_fit",
"params":{
"width":1000
@blitline-dev
blitline-dev / base64inline.json
Created January 10, 2017 18:08
base64inline.json
{
"application_id": "YOUR_APP_ID",
"src": "https://s3.amazonaws.com/img.blitline/filters/boys.jpeg",
"functions": [{
"name": "composite",
"params": {
"src": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAO0AAABuCAMAAAD8t2TLAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAC1QTFRF////LVcpkauOZYdhrsStx9jF1uTV+//66PPn8vzy4uji7vft4O3f+P/38fPwC7dd6gAACdxJREFUeNrsXIti2yoMNYiHiSH//7kXCXD8AmTaddudta1zEht0QOhIgnSaHnnkkUceeeSRv1vszzRlv7OjL2hoUZEwTSHUNHIsoLYJ1oYBvE2tjnfu1Nw85DbNWCVAxysvgS7OgxEcR8vglfINtDJ1cxNuRaur7t1OTUfoSPtNM1GLKHqaBUk4aakBP+73plBC9XONrbP03opJWs3dG1FLoT6vVeqMtFeTBZFQkhYCbEILFS37es2Etq6W4up99dTSXUewmyvrduj8RFMaYauMNtD/8ro/sN+FdhlB2x3sEBJas5ujFZ2c/O61CGl0TKW/8E1oYfolaO0idpOVp3qdy5AuVrRzuqGy3hgG6H4J2jJHXWcmxNYGk6FGS07rXtrkp4plRzj6utklW353eA3DSzH0PnsflitXeyertiBV5FfioNyeJDTB1dSUthc4xL+z0q6n90A8gEzCoVxZYJSXH5BIsvgZtRN6w6tyBFJFq2kAeyFCmIbEah7lhn2AswEp87wrIQ0n2lLN/nSxm6+GCNf+j70GYoBjdvFMcryFZMlxM+DmCKRNdr4TIuhBtIHr35boOPTRUxxpSH/VM2a0S8eDqEG0qXnorwONftKeu1V5jhUPrWpqa3uD/0W0+fl+PHWIXfPcFkvOEQUXbe
@blitline-dev
blitline-dev / inline_image.js
Created January 9, 2017 21:20
inline_image.js
{
"application_id": "YOUR_APP_ID",
"src": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAO0AAABuCAMAAAD8t2TLAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAC1QTFRF////LVcpkauOZYdhrsStx9jF1uTV+//66PPn8vzy4uji7vft4O3f+P/38fPwC7dd6gAACdxJREFUeNrsXIti2yoMNYiHiSH//7kXCXD8AmTaddudta1zEht0QOhIgnSaHnnkkUceeeSRv1vszzRlv7OjL2hoUZEwTSHUNHIsoLYJ1oYBvE2tjnfu1Nw85DbNWCVAxysvgS7OgxEcR8vglfINtDJ1cxNuRaur7t1OTUfoSPtNM1GLKHqaBUk4aakBP+73plBC9XONrbP03opJWs3dG1FLoT6vVeqMtFeTBZFQkhYCbEILFS37es2Etq6W4up99dTSXUewmyvrduj8RFMaYauMNtD/8ro/sN+FdhlB2x3sEBJas5ujFZ2c/O61CGl0TKW/8E1oYfolaO0idpOVp3qdy5AuVrRzuqGy3hgG6H4J2jJHXWcmxNYGk6FGS07rXtrkp4plRzj6utklW353eA3DSzH0PnsflitXeyertiBV5FfioNyeJDTB1dSUthc4xL+z0q6n90A8gEzCoVxZYJSXH5BIsvgZtRN6w6tyBFJFq2kAeyFCmIbEah7lhn2AswEp87wrIQ0n2lLN/nSxm6+GCNf+j70GYoBjdvFMcryFZMlxM+DmCKRNdr4TIuhBtIHr35boOPTRUxxpSH/VM2a0S8eDqEG0qXnorwONftKeu1V5jhUPrWpqa3uD/0W0+fl+PHWIXfPcFkvOEQUXbe2+atD5PWhLKD/z0No9C5CbTsFyqMRPl5Zcd7oOoAnmS+vW2uwk+4Pi9JED14kmcjWy75MDeSk511gP/X5YTIsSk08eqRuEKRBx2v6gBNtMsB2PA4MP1NQsL1nEO
@blitline-dev
blitline-dev / tika_results.js
Created January 4, 2017 21:46
Tika support
{
"application_id":"YOUR_APP_ID",
"src":"https://s3.amazonaws.com/blitdoc/docx/Contoso.xlsx",
"get_tika" : "true",
"v" : 1.22,
"functions":[
{
"name":"crop",
"params":{
"gravity": "NorthGravity",
@blitline-dev
blitline-dev / detect_labels.js
Created December 6, 2016 00:22
Use AWS Rekognition with Blitline
{
"application_id":"YOUR_APP_ID",
"src":"https://s3.amazonaws.com/img.blitline/skysmall.jpg",
"v" : 1.22,
"detect_labels" : true,
"functions":[
{
"name":"resize_to_fit",
"params":{
"width": 400
{
"application_id":"YOUR_APP_ID",
"src_type" : "pre_process_only",
"src":"http://cdn.blitline.com/filters/boys.jpeg",
"v" : 1.22,
"pre_process":[
{
"find_subimage" : {
"subimage_src" : "https://s3.amazonaws.com/blitdoc/pngs/boys_subimage.jpg"
}