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 / test_foo
Created April 10, 2012 17:48
test_foo
{
"application_id": "YOUR_APP_ID",
"src" : "https://s3.amazonaws.com/img.blitline/temp_folder/image.jpg",
"functions" : [
{
"name": "composite",
"params" : {
"src" : "https://s3.amazonaws.com/img.blitline/temp_folder/mask1.png",
"composite_op" :"CopyOpacityCompositeOp",
"as_mask" : true
@blitline-dev
blitline-dev / Blitoverlay
Created April 16, 2012 05:06
Simple Blitline Overlay
{
"application_id":"YOUR_APP_ID",
"src":"https://s3.amazonaws.com/img.blitline/blog/jelly_bean.jpg",
"functions":[
{
"name":"composite",
"params":{
"src":"https://s3.amazonaws.com/img.blitline/blog/frame.png"
},
"save":{
@blitline-dev
blitline-dev / blitline_pdf_example
Created April 17, 2012 22:10
Blitline PDF Example
{
"application_id":"YOUR_APP_ID",
"src":"https://s3.amazonaws.com/img.blitline/temp_folder/tmlv-cottages-adams.pdf",
"functions":[
{
"name":"resize_to_fit",
"params":{
"width":800,
"height":9999
},
@blitline-dev
blitline-dev / Blitshot Example
Last active June 18, 2022 23:46
Blitshot Example
{
"application_id":"YOUR_APP_ID",
"src":"https://www.docker.com",
"src_type":"screen_shot_url",
"functions":[
{
"name":"resize_to_fit",
"params":{
"width":800,
"height":"9999"
@blitline-dev
blitline-dev / pad_resize_to_fit
Created May 13, 2012 05:59
Pad resize to fit
{
"application_id":"YOUR_APP_ID",
"src":"http://cdn.blitline.com/filters/boys.jpeg",
"functions":[
{
"name":"pad_resize_to_fit",
"params":{
"width": "600",
"height":"400",
"color":"#aa0000",
@blitline-dev
blitline-dev / only_shrink_larger
Created May 16, 2012 19:26
Only shrink larger example
{ "application_id": "YOUR_APP_ID", "src" : "http://www.google.com/logos/2011/yokoyama11-hp.jpg", "functions" : [ {"name": "resize_to_fit", "params" : {"width" : 2000, "height" : 400, "only_shrink_larger": true}, "save" : { "image_identifier" : "MY_CLIENT_ID" }} ]}
@blitline-dev
blitline-dev / s3_header_example
Created May 21, 2012 22:08
S3 Header Example
{"src":"http://www.google.com/intl/en_com/images/srpr/logo3w.png","functions":[{"name":"blur","save":{"image_identifier":"my_image","s3_destination":{"key":"grumpy_squirrel/image.jpg","bucket":"YOUR_BUCKET","headers":{"x-amz-meta-foo":"bar","x-amz-meta-baz":"qux"}}}}],"application_id":"YOUR_APP_ID"}
<html>
<head>
<title>My Great Web page</title>
</head>
<body>
<iframe src="http://www.facebook.com/plugins/like.php?href=YOUR_URL"
scrolling="no" frameborder="0"
style="border:none; width:450px; height:80px"></iframe>
</body>
</html>
@blitline-dev
blitline-dev / asdfasdf
Created May 24, 2012 16:57
Gist Example
<html>
<head>
<title>My Great Web page</title>
</head>
<body>
<iframe src="http://www.facebook.com/plugins/like.php?href=YOUR_URL"
scrolling="no" frameborder="0"
style="border:none; width:450px; height:80px"></iframe>
</body>
</html>
@blitline-dev
blitline-dev / HashExample
Created May 31, 2012 00:30
Hash Example
{ "application_id": "YOUR_APP_ID", "hash": "crc32", "src" : "http://www.google.com/logos/2011/yokoyama11-hp.jpg", "functions" : [ {"name": "blur", "params" : {"radius" : 0.0, "sigma" : 2.0}, "save" : { "image_identifier" : "MY_CLIENT_ID" }} ]}