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

SDK Image hosting #148

Open
tmrobert8 opened this issue Nov 2, 2018 · 1 comment
Open

SDK Image hosting #148

tmrobert8 opened this issue Nov 2, 2018 · 1 comment

Comments

@tmrobert8
Copy link

tmrobert8 commented Nov 2, 2018

We are making more use of images now (directories, etc) - but there is no easy way to host an image. You either need something public (which sucks) or have something private (which is cumbersome if you release your driver to others).

Would be great if the SDK could host images from itself (or maybe make it wider and host any resource needed). That way as a SDK writer - I'd be able to do something like:
deviceBuilder.addResource('images', './images/'); deviceBuilder.addImageUrl({ uri: '{images}/movie.jpg', label: 'Movie', ... }...)

The SDK would then take the URI in the addImageUrl and substitute the variable in the URI with the appropriate resource name and then prepend with the full hosting URL of the SDK

@wuggawugga
Copy link

For my own project, I've ended up writing a local image "hosting" service using mostly the packages already required by neeo-sdk (express, axios etc.). It caches, resizes and serves images on-demand from memory. It really took very little code to achieve. Adding something similar as an SDK feature or just an example would be quite manageable, I imagine.

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

No branches or pull requests

3 participants