From 70fc1081da51eb85305fb59af227291ac7813f8e Mon Sep 17 00:00:00 2001 From: Peter Buckley Date: Tue, 18 Apr 2017 14:19:29 -0400 Subject: [PATCH] minor typo and consistent colons for example text --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 079e6d8..f26025b 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ Analyse and compare images with Javascript and HTML5. [More info & Resemble.js D ### Example -Retrieve basic analysis on image. +Retrieve basic analysis on an image: ```javascript var api = resemble(fileData).onComplete(function(data){ @@ -29,7 +29,7 @@ var api = resemble(fileData).onComplete(function(data){ }); ``` -Use resemble to compare two images. +Use resemble to compare two images: ```javascript var diff = resemble(file).compareTo(file2).ignoreColors().onComplete(function(data){ @@ -51,7 +51,7 @@ Scale second image to dimensions of the first one: diff.scaleToSameSize(); ``` -You can also change the comparison method after the first analysis. +You can also change the comparison method after the first analysis: ```javascript // diff.ignoreNothing(); @@ -60,7 +60,7 @@ diff.ignoreAntialiasing(); ``` -And change the output display style. +And change the output display style: ```javascript resemble.outputSettings({ @@ -79,7 +79,7 @@ resemble.outputSettings({ By default, the comparison algorithm skips pixels when the image width or height is larger than 1200 pixels. This is there to mitigate performance issues. -You can switch this modify this behaviour by setting the `largeImageThreshold` option to a different value. Set it to **0** to switch it off completely. +You can modify this behaviour by setting the `largeImageThreshold` option to a different value. Set it to **0** to switch it off completely. `useCrossOrigin` is true by default, you might need to set it to false if you're using [Data URIs](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs).