-
-
Notifications
You must be signed in to change notification settings - Fork 46
iOS unable to get requested image resolution, always getting smaller #26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @Daxito, I reviewed your case and found that the image, which has been made has been saved to the gallery and returned in the app with the correct size. However, the problem comes from the We will research this behavior and will provide further info about the problem and what is causing it. Regards, |
Thank you @tsonevn ! |
Hi @Daxito TypeScript
Regards, |
@tsonevn Thank you for sharing! I'm taking a look at it right now. |
FYI: seems like Android has the same issue ;-), It makes sense if you said it might be a problem with the Image Source |
Hi @Daxito, I was able to reproduce this behavior also on Android. I am still searching for a workaround and will provide further info with possible solution Android. |
Hi @Daxito, To be able to create image with custom size on Android, you could create Bitmap with appropriate width and height. I am attaching sample with the workaround for this case:
Regards, |
Thank you @tsonevn ! I already implemented the workaround for iOS! Thanks |
@tsonevn any idea how I can convert the final bitmap/asset object to base64 in both cases? |
In my case, It is taking larger pictures than the size I provided. (In case of both android and ios.) |
The above-mentioned issues were caused by the image processing logic in the NativeScript core modules. @Daxito, you are always getting 320x480 because the logic was restricting the image size to the screen size of the current device. @nmongiya, you are getting bigger images on Android because the images were read up to 2x the requested size. All of the image processing issues are now resolved but still now available publicly. You could track the status of these pull requests: nativescript-core-modules PR We can't do anything more inside the camera plugin but will keep this issue opened till the core modules fixes become released. |
Any status on this when this will be merged in to comming NativeScript core? |
@p-3 You can expect these PRs to be merged in the next 2 weeks. |
I'm closing this issue as the PRs fixing it are already merged in the core modules and available in the tns-core-modules@next version. Stay tuned for the official release. |
Hello everyone, I am currently capturing images with the camera, both on Android and IOS, it is not possible to change the size of the image. I await your suggestions. regards
|
Seems like this issue was fixed few years ago but i still cannot get image smaller. but I am getting this sizeimage: 1890x3360 |
It looks like it is fixed just device shows size not correct. |
I am not sure what I am doing wrong or maybe this is a bug.
I want to take a picture 2048x1536 but I keep getting an image 320x480.
Please see the attached demo that shows the issue.
I am using an iPhone 4.
CameraTest.zip
The text was updated successfully, but these errors were encountered: