How to reduce size to image file


Hi, Im using :

nativescript 2.5.4
tns-core-modules │ 2.5.2

and I need to reduce the file size of an image (jpg) that is on the device, because I’m sending them to a server… and I need to be lighter actually nativescript-camera takes 1 to 3 MB images… so when I use them in tag the app slow down when use 3 or more.

I tried nativescript-bitmap-factory that is on this forum How can I resize images? but it gives an error… =( actually described in the same forum.

Any ideas?