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

Rewrite to separate web app & interface from image processor #78

Open
jywarren opened this issue Aug 28, 2015 · 10 comments
Open

Rewrite to separate web app & interface from image processor #78

jywarren opened this issue Aug 28, 2015 · 10 comments

Comments

@jywarren
Copy link

It'd work like this:

// Initialize
var ig = new Infragram({webgl: false});

// Load an image:
ig.load('img.jpg');

// OR load an image object:
var img = new Image();
// stuff
ig.load(img);

// Now set an infragrammar expression: 
ig.apply('(R+G)/(R-G)');

// Get the resulting image back out as an Image object or otherwise:
ig.export();
ig.exportDataUrl();

// All in one step:
ig.filter('(R+G)/(R-G)', img);

// Or to filter and automatically replace an image element on a web page:
ig.filter('(R+G)/(R-G)', 'elementId');

And use https://github.com/Automattic/node-canvas to make runnable in NodeJS, and maybe even WebGL: https://github.com/mikeseven/node-webgl

If we did this, we'd be able to:

  • process images in MapKnitter on the fly
  • apply a composite in real time to a tileset, perhaps as a Leaflet plugin
  • run the whole thing on the commandline on a video file
@nbarry202
Copy link

This would be very cool!

@jywarren
Copy link
Author

jywarren commented Aug 22, 2017 via email

@nbarry202
Copy link

Sounds good. I've not much experience with Js, but hopefully I can work out how to run this from command line. I've got a little python script that currently uses infrapix_single to convert a batch images for a timelapse, but would love something that looks a bit more like infragram.

Hopefully I can work out how to call the Js from python!

Cheers

@jywarren
Copy link
Author

jywarren commented Aug 22, 2017 via email

@nbarry202
Copy link

nbarry202 commented Aug 22, 2017

Fantastic, all the best with completing the project :)

@jywarren
Copy link
Author

@ccpandhare - note potential interested party here! :-)

@nbarry202
Copy link

Hopefully I can improve on this type of video
https://youtu.be/Dx_P4b4Q8w8

@ccpandhare
Copy link

ccpandhare commented Aug 24, 2017

Integration with Infragram sounds pretty interesting!
Never knew this is where the idea for Image Sequencer came from 😅
Or maybe not? 🤔

@jywarren
Copy link
Author

jywarren commented Aug 24, 2017 via email

@jywarren
Copy link
Author

Also, did this here! https://github.com/publiclab/infragram -- tore out the processor there and separated it from the server-side app!

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

3 participants