Comments (2)
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.
from blitline_node.
Thanks! Did not try to add the addSave to the function. I appreciate the speed of the response!
from blitline_node.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blitline_node.