Skip to content

Instantly share code, notes, and snippets.

Avatar

Blitline Developers blitline-dev

View GitHub Profile
View fun_example.js
{
"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 Feb 1, 2019
Single Page PDF Sceenshot
View fun_example.js
{
"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": [{
View ai_background.json
{
"application_id":"YOUR_APP_ID",
"v" : 1.21,
"src":"https://s3.amazonaws.com/blitdoc/jpgs/musk.jpg",
"functions":[
{
"name":"remove_background",
"params":{
},
"save":{
View image_optim.json
{
"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
},
View tika.js
{
"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
View 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
View 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
View tika_results.js
{
"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 Dec 6, 2016
Use AWS Rekognition with Blitline
View detect_labels.js
{
"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
View subimage_find.js
{
"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"
}