Local image in chrome canvas

Chrome access to local files is limited, but I would like to draw an image on the canvas: the image selected with the file input and not sending the image to the server, and then requesting it back.

Some help would be great!

+6
google-chrome image canvas local
source share
2 answers

Since you use Google Chrome, files: // URIs cannot read other files: // URIs. If you use this for development, you can add the following command line switch in chrome:

--allow-file-access-from-files 

HTML5 has (is currently under development) a file system API , you can read an example here: http://www.html5rocks.com/tutorials/file/filesystem/

+3
source share

If your file is not in the local domain, see this answer .

0
source share

All Articles