Giter Site home page Giter Site logo

Comments (2)

blitline-dev avatar blitline-dev commented on June 26, 2024

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.

d1b1 avatar d1b1 commented on June 26, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.