From daef618a67de27b995acf63a60beaba922b45263 Mon Sep 17 00:00:00 2001 From: Veselina Radeva Date: Fri, 20 Oct 2017 17:56:31 +0300 Subject: [PATCH] doc: Remove example for scaling images since we now provide aspectRatio option --- README.md | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/README.md b/README.md index d0cb163..2617351 100644 --- a/README.md +++ b/README.md @@ -75,26 +75,6 @@ context > **NOTE**: To request permissions for Android 6+ (API 23+) we use [nativescript-permissions](https://www.npmjs.com/package/nativescript-permissions). -### Process the selection with scaling images to specified dimensions and returning ImageSource object - -``` -context - .authorize() - .then(function() { - return context.present(); - }) - .then(function(selection) { - selection.forEach((selectedPhoto) => { - selectedPhoto.getImage({ maxWidth: 500, maxHeight: 500 }) // maintains aspect ratio - .then((imageSource) => { - // process the selected image - }); - }); - }).catch(function (e) { - // process error - }); -``` - ## API ### Methods