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

Add option to output an array of image hash uris #21

Open
calum opened this issue Jan 30, 2018 · 3 comments
Open

Add option to output an array of image hash uris #21

calum opened this issue Jan 30, 2018 · 3 comments
Milestone

Comments

@calum
Copy link
Owner

calum commented Jan 30, 2018

Instead of accepting a file, it could accept a URL to an image, and then outputs an array of uris representing pieces. This avoids the need to store the images locally.

@calum
Copy link
Owner Author

calum commented Jan 31, 2018

This may work already. Similarly to #22. Needs to be checked though

@calum calum added this to the 2.1.0 milestone Feb 1, 2018
@calum
Copy link
Owner Author

calum commented Feb 1, 2018

can be done:

Data URI

A Base64 data URI can be generated in the same way as a Buffer, using:

image.getBase64( mime, cb ); // Node-style callback will be fired with result

@calum
Copy link
Owner Author

calum commented Feb 1, 2018

this can be used to create a drag-and-drop jigsaw web application to demonstrate jigsaw-builder

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

No branches or pull requests

1 participant