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 / vector_example.js
Last active August 29, 2015 13:56
Vector Example
{
"application_id": "YOUR_APP_ID",
"src": "http://dev.w3.org/SVG/tools/svgweb/samples/svg-files/car.svg",
"functions": [
{
"name": "no_op",
"save": {
"extension" : ".png",
"image_identifier": "MY_CLIENT_ID"
}
{
"application_id":"YOUR_APP_ID",
"src":"http://cdn.blitline.com/filters/boys.jpeg",
"functions":[
{
"name":"tile",
"params":{
"src" : "https://s3.amazonaws.com/img.blitline/test_pngs/apple.png",
"scale" : 0.30
},
{
"application_id": "YOUR_APP_ID",
"src": "https://img.blitline.s3.amazonaws.com/test_pngs/apple.png",
"functions": [
{
"name": "resize_to_fit",
"params": {
"width": 200
},
"save": {
@blitline-dev
blitline-dev / move_original_with_conversion
Last active August 29, 2015 13:58
Move original with conversion
{
"application_id": "YOUR_APP_ID",
"src": "https://s3.amazonaws.com/img.blitline/ai/Swirls_Circles_Graphic.ai",
"src_type": "pre_process_only",
"pre_process": {
"convert_original": {
"s3_destination": {
"bucket": "bltemp",
"key": "grumpy_squirrel/moved_original_foo.svg"
}
@blitline-dev
blitline-dev / get_metadata_example.json
Last active August 29, 2015 14:00
non_stock_bulk_sell
{
"application_id": "YOUR_APP_ID",
"src" : "https://s3.amazonaws.com/bltemp/non_stock_bulk_sell_sheet.pdf",
"extended_metadata" : true,
"v" : 1.9,
"functions" :
[{
"name": "no_op",
"save" : {
"skip" : true,
@blitline-dev
blitline-dev / simple_get_image_info.json
Created April 30, 2014 03:34
simple_get_image_info.json
{
"application_id": "YOUR_APP_ID",
"src": "https://s3.amazonaws.com/img.blitline/Boston+City+Flow.jpg",
"v": 1.9,
"functions": [
{
"name": "no_op",
"save": {
"skip": true,
"image_identifier": "external_sample_1"
{
"application_id": "YOUR_APP_ID",
"src": "http://cdn.blitline.com/filters/boys.jpeg",
"functions": [
{
"name": "script",
"params": {
"bash_string": "convert input.png -set comment 'geometry:%g\ntrim bounding box:%@\nx offset:%x\ny offset:%y\nfile:%t' -trim -scale '160x160>' -gravity center -extent '160x160>' -quality 90 -profile sRGB.icc +profile 'xmp' +profile 'iptc' output.png"
},
"save": {
@blitline-dev
blitline-dev / maybe_good_enough.json
Created May 8, 2014 21:55
maybe_good_enough.json
{
"application_id": "YOUR_APP_ID",
"src": "http://cdn.blitline.com/filters/boys.jpeg",
"extended_metadata": true,
"functions": [
{
"name": "pad_resize_to_fit",
"params": {
"width": "160",
"height": "160"
@blitline-dev
blitline-dev / color_extraction.json
Created May 9, 2014 04:11
color_extraction.json
{
"application_id": "YOUR_APP_ID",
"src": "http://cdn.blitline.com/filters/boys.jpeg",
"extract_colors" : { "max_count" : 12},
"functions": [
{
"name": "resize_to_fit",
"params": {
"width": 100
},
@blitline-dev
blitline-dev / serial_functions.json
Created May 15, 2014 01:19
serial_functions.js
{
"application_id": "YOUR_APP_ID",
"src": "http://www.librato.com",
"src_type": "screen_shot_url",
"functions": [
{
"name": "resize_to_fit",
"params": {
"width": 800
},