NativeScript / nativescript-camera

NativeScript plugin to empower using device camera.
Apache License 2.0
93 stars 47 forks source link

[Android] Bad resolution for pictures in hight resolution #240

Open wesoly935 opened 4 years ago

wesoly935 commented 4 years ago

For example taken photos in 8 Mpx resolution (3264x2448) returning ImageAsset in resolution 1920x1080.

Changing options keepAspectRatio not resolve my problem. Is any option to get real image and resolution?

I checked a temporary file saved in application, picture has good resolution, as setted in camera option. After load to ImageAssets, resolution is changing.

let asset = new imageAssetModule.ImageAsset(picturePath);
                        asset.options = {
                            width: reqWidth,
                            height: reqHeight,
                            keepAspectRatio: shouldKeepAspectRatio
                        };
                        resolve(asset)

This place return bad resolution of image.

ZaKull commented 4 years ago

resolution in screen ... change this..