From 6e3f9b04dece57f77775670d6cedd6010abc5ca1 Mon Sep 17 00:00:00 2001 From: Lovell Fuller Date: Mon, 26 Aug 2013 16:20:43 +0100 Subject: [PATCH] Corrected order of width and height in usage docs --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index a616fa94..9ce0edb7 100755 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ Ubuntu 13.04 (64-bit): ## Usage - var sharp = require("sharp"); + var sharp = require("sharp"); ### crop(inputPath, outputPath, width, height, callback) @@ -51,7 +51,7 @@ sharp.crop("input.jpg", "output.jpg", 300, 200, function(err) { if (err) { throw err; } - // output.jpg is a 300 pixels wide and 200 pixels high image + // output.jpg is a 200 pixels wide and 300 pixels high image // containing a scaled and cropped version of input.jpg }); ``` @@ -65,7 +65,7 @@ sharp.embedWhite("input.jpg", "output.jpg", 200, 300, function(err) { if (err) { throw err; } - // output.jpg is a 300 pixels wide and 200 pixels high image + // output.jpg is a 200 pixels wide and 300 pixels high image // containing a scaled version of input.jpg embedded on a white canvas }); ``` @@ -79,7 +79,7 @@ sharp.embedBlack("input.jpg", "output.jpg", 200, 300, function(err) { if (err) { throw err; } - // output.jpg is a 300 pixels wide and 200 pixels high image + // output.jpg is a 200 pixels wide and 300 pixels high image // containing a scaled version of input.jpg embedded on a black canvas }); ```