nativescript-camera icon indicating copy to clipboard operation
nativescript-camera copied to clipboard

[Android] Bad resolution for pictures in hight resolution

Open wesoly935 opened this issue 5 years ago • 1 comments

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.

wesoly935 avatar Feb 27 '20 09:02 wesoly935

resolution in screen ... change this..

ZaKull avatar Mar 18 '20 12:03 ZaKull