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 / complex_gif.json
Created August 21, 2015 01:08
complex_gif.js
{
"pre_process": [
{
"job": {
"src": "https://placeholdit.imgix.net/~text?txtsize=24&txt=350%C3%97150&w=450&h=250",
"functions": [
{
"name": "composite",
"params": {
"src": "https://s3.amazonaws.com/blitdoc/logos/box_icon/box_icon_70x70.png",
@blitline-dev
blitline-dev / gif_underlay
Last active August 29, 2015 14:27
gif_underlay
{
"application_id": "YOUR_APP_ID",
"src": "https://s3.amazonaws.com/blitdoc/gifs/transparent.gif",
"src_type": "gif",
"src_data": {
"name": "gif_underlay",
"params": {
"overlay_src": "https://placehold.it/400x400",
"overlay_params": {
"gravity": "southwest",
{
"application_id":"YOUR_APP_ID",
"src":"https://s3.amazonaws.com/blitdoc/gifs/transparent.gif",
"postback_url" : "https://blitline.com/stats",
"src_type" : "gif",
"src_data" : {
"name" : "gif_underlay",
"params" : {
"overlay_src" : "https://placehold.it/400x400"
},
{
"application_id": "YOUR_APP_ID",
"v": 1.21,
"src": "https://s3.amazonaws.com/blitdoc/docx/Document+2.docx",
"src_type": "smart_image",
"src_data": {
"dpi": 200
},
"functions": [
{
@blitline-dev
blitline-dev / phantom2.json
Created April 17, 2015 01:03
phantom2.json
{
"application_id": "YOUR_APP_ID",
"src": "http://www.yapp.us/splash/1f00c9aa-f86c-477a-a025-3334ffadcd8e",
"src_data": {
"phantom_version": "2",
"viewport": "1200x1000"
},
"src_type": "screen_shot_url",
"functions": [
{
@blitline-dev
blitline-dev / sample_hash_array.json
Created April 16, 2015 23:24
sample_hash_array.json
{
"application_id": "YOUR_APP_ID",
"v": 1.21,
"src": "http://cdn.blitline.com/filters/boys.jpeg",
"hash": [
"phash_dct",
"sha256"
],
"functions": [
{
{
"application_id":"YOUR_APP_ID",
"src" : "http://s.hswstatic.com/gif/whiskers-sam.jpg",
"functions":[
{
"name":"convert_command",
"params" : {
"-flip" : ""
},
"save": {
@blitline-dev
blitline-dev / sample_svg.json
Created March 8, 2015 02:34
sample_svg.json
{
"application_id":"YOUR_APP_ID",
"src":"https://s3.amazonaws.com/dev.blitline/sample.svg",
"functions":[
{
"name":"resize_to_fit",
"params":{
"width" : 400
},
"save":{
@blitline-dev
blitline-dev / sample_get_exif.json
Last active August 29, 2015 14:15
sample_get_exif.json
{
"application_id":"YOUR_APP_ID",
"src":"https://s3.amazonaws.com/img.blitline/advanced_formats/canon_sample.cr2",
"get_exif" : true,
"v" : 1.21,
"functions":[
{
"name":"resize_to_fit",
"params":{ "width" : 100 },
"save":{
{
"application_id": "YOUR_APP_ID",
"src": "https://s3.amazonaws.com/img.blitline/gifs/6.gif",
"src_type": "pre_process_only",
"v" : 1.21,
"pre_process": [
{
"gif_to_vid": {
"loop_count": 4,
"s3_destination": {