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 @@
+