[05-06-2012 23:10 KST] Due to a service hosting issue, node server was changed from nodester.com to no.de. Accordingly, the manifest files have been changed. In the case that you already registered an intent with nodester.com, please register a new intent with the manifest files in the repo again. (see How to run section.)
This repo contains the source code for a demo to discuss on the Gallery API proposed at W3C DAP WG. Gallery API works based on Web Intets pick request and the corresponding response in callback.
The demo includes two scenarios: [1] Pick images by URL and [2] Pick images by Content
[1] retrieves only image URLs with metadata and display images using
<img src=the image url />
[2] receives actual image contents with metadata and display images using
<img src="data: image/jpeg, " + the image content +'"' />
- Environment: Chrome 19.0.1084.52 stable or higher (for Web Intents support)
- download the manifest files for [1] and [2] from:
(a) https://github.com/jungkees/gallery/blob/master/manifest/url/manifest.json https://github.com/jungkees/gallery/blob/master/manifest/url/G.png
(b) https://github.com/jungkees/gallery/blob/master/manifest/content/manifest.json https://github.com/jungkees/gallery/blob/master/manifest/content/G.png
-
Save (a) at your local storage
- manifest.json and G.png should be stored at the same folder.
Do the same for (b) (at different folder)
-
Register Intents (a) and (b) by:
-
Load "chrome://chrome/extensions" page in Chrome
-
Click "Load unpacked extension..." button
-
Go to the folder having (a)
-
Click "Open"
Do the same for (b)
-
-
Click "Pick" button and select the corresponding intent request from picker registered at 3.
The demo server has been implemented as node.js app. The service runs at Nodester hosting server.