Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Status of this package? #3

Open
d1b1 opened this issue Oct 19, 2012 · 2 comments
Open

Status of this package? #3

d1b1 opened this issue Oct 19, 2012 · 2 comments

Comments

@d1b1
Copy link

d1b1 commented Oct 19, 2012

Is this package fully built out? Several of the features do not seem to connect? Or maybe we are missing something in the implementation. Can you provide an example of how to include s3_destination parameters for addFunction / addSave?

We see the the S3Destination in the lib.

@blitline-dev
Copy link
Owner

Here is an example with an S3_destination:

The simplest route is to just addSave(image_identifier, destination_bucket, destination_key) to a function.:

var Blitline = require('<PATH TO YOUR>/lib/blitline');

var blitline = new Blitline();
/* Replace MY_APP_ID with your Blitline application_id */
var job = blitline.addJob("MY_APP_ID", "http://www.google.com/intl/en_com/images/srpr/logo3w.png");
var blur_function = job.addFunction("blur", null, "my_blurred_image");
var crop_function = blur_function.addFunction("resize_to_fill", { width: 50, height: 50}, "my_blurred_cropped_image");


crop_function.addSave("my_image", "bltemp", "sample/foo.jpg");


blitline.postJobs(function(response) {
  console.log(response);
});

This requires the destination_bucket and the destination_key to have permission for Blitline to write to them (as documented here: http://www.blitline.com/docs/s3_permissions)

Does that help? I can help you with a more examples if you'd like.

@d1b1
Copy link
Author

d1b1 commented Oct 20, 2012

Thanks! Did not try to add the addSave to the function. I appreciate the speed of the response!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants