nativescript-community / nativescript-drawingpad

:pencil: NativeScript plugin to provide a way to capture any drawing (signatures are a common use case) from the device
Apache License 2.0
90 stars 32 forks source link

ios not using compression #24

Closed johnnyzen closed 7 years ago

johnnyzen commented 7 years ago

Hi all

It seems this plugin in iOS is ignoring compression settings? Android is fine:

Here are my settings:

let drawingImage; pad.getDrawing().then((data) => { const image = ImageSource.fromNativeSource(data); const base64ImageString = image.toBase64String('jpeg', 10); this._sessionService.getCurrentSession().signature.base64ImageString = base64ImageString; }, (err) => { console.error(err); });

Any ideas on why this might be?

johnnyzen commented 7 years ago

Sorry I am stupid. toBase64String is not part of this library