From ef8cd3a9d8f2da26f7d06d92f9c52ad8132fcffd Mon Sep 17 00:00:00 2001 From: Chinmay Pandhare Date: Sat, 8 Jul 2017 19:03:38 +0530 Subject: [PATCH] Requested Changed Made --- README.md | 10 +++++++++- replace-demo.html => examples/replace.html | 14 +++++++------- 2 files changed, 16 insertions(+), 8 deletions(-) rename replace-demo.html => examples/replace.html (71%) diff --git a/README.md b/README.md index faab3003..d0e57343 100644 --- a/README.md +++ b/README.md @@ -33,12 +33,20 @@ Image Sequencer can be used to run modules on an HTML Image Element using the `selector` is a CSS selector. If it matches multiple images, all images will be modified. `steps` may be the name of a module or array of names of modules. -Note: Local images will work only if they are in the same directory or a subdirectory. +Note: Browser CORS Restrictions apply. Some browsers may not allow local images +form other folders, and throw a Security Error instead. ```js sequencer.replaceImage(selector,steps); ``` +For example: + +```js + sequencer.replaceImage('#photo','invert'); + sequencer.replaceImage('#photo',['invert','ndvi-red']); +``` + ## Classic Usage diff --git a/replace-demo.html b/examples/replace.html similarity index 71% rename from replace-demo.html rename to examples/replace.html index 2a598206..b3242b81 100644 --- a/replace-demo.html +++ b/examples/replace.html @@ -7,13 +7,13 @@ - - - + + + - - - + + + @@ -33,7 +33,7 @@
- +