The Gallery API demo
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Gallery API demo


[05-06-2012 23:10 KST] Due to a service hosting issue, node server was changed from to Accordingly, the manifest files have been changed. In the case that you already registered an intent with, 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)

How to run

  1. download the manifest files for [1] and [2] from:



  1. Save (a) at your local storage

    1. manifest.json and G.png should be stored at the same folder.

    Do the same for (b) (at different folder)

  2. Register Intents (a) and (b) by:

    1. Load "chrome://chrome/extensions" page in Chrome

    2. Click "Load unpacked extension..." button

    3. Go to the folder having (a)

    4. Click "Open"

    Do the same for (b)

  3. go to:

  4. 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.