Hello there David.
I'm still playing with the AppBuilder. Currently on version 2016.224
So basically I'm taking a picture, and then saving the base64 data into some other variable.
i do this, since I might be getting the picture from more than one source.
Then I upload the image to the web.
What I cannot seem to fix, is to get the camera data to be bigger than 216x288 size?
It is always that size - no matter if I get it from the gallery, or if I get it from the camera.
I was hoping that specifying "TargetWidth" will get me a better quality image, but the image is always about 5K size and always width of 216 and length of 288. No matter what phone I use.
I seems as if the cordova camera plugin make the choice of 216x288? And we as users cannot override it?
ps. Just as a sidenote - If I lower the quality too much, I get a "Error compressing image" error.
Hope you can help me with this one!
Hello fakie,
Maybe you no need to use "Camera1.TargetWidth" nor "Camera1.TargetHeight" at all. But if you wanted (according to the documentation) you must use both and not only "Camera1.TargetWidth". Since I can see you use "Camera1.TargetWidth" but not "Camera1.TargetHeight" maybe this cause the issue. So try to set "Camera1.TargetHeight" or do not set "Camera1.TargetWidth".
P.S. You are using an old release of App Builder. Update your trial copy to the latest one so we can be sure we use the same release.
Thanks David.
That seems to be the issue - got it working.
I specified both the height and the width and then it all worked!
Great.
ps. For other people out there I can warn that you get an "JSON Error" unspecified , if you make the quality too low in the Cordova Camera Plugin.
Hello fakie,
Thanks David.
That seems to be the issue - got it working.
I specified both the height and the width and then it all worked!
Great.
ps. For other people out there I can warn that you get an "JSON Error" unspecified , if you make the quality too low in the Cordova Camera Plugin.
Glad to know you got it! Thanks for sharing the possible problems with the Cordova's Camera plugin with us!
Todo el mundo puede leer el foro de soporte de DecSoft para aprender del mismo, sin embargo, sólo los clientes de DecSoft pueden abrir nuevos hilos. Compre una o más licencias de productos de DecSoft y obtendrá este y otros beneficios.