Closed reviloera closed 5 years ago
Hey @reviloera
Thanks for bringing forward this issue. That is indeed strange behavior. Please answer these questions as best as you can so I can analyse your situation.
@ChrisTomAlx
at times its working at times its failing .... so I dont know why. Am also testing on Galaxy Tab(2016) android version 5.1.1 and its crashing.
let me send you my results for Huawei when it fails.
This is the black screen am running into after some scans .... I dont know why?
I had the same problem. After use of debugging (adb logcat), I catch the following error : " OpenGLRenderer: Bitmap too large to be uploaded into a texture (3403x4899, max=4096x4096)". So when you crop the photo to a small size, it works fine... I think it can be a good track to follow ...
@sdegunst I will try out your suggestion and see how it's behaving. Thanks so much for the insight
I think this problem is the same as #47
Hey @ all.
Finally got around to fixing the quality issue. From plugin version 4.1.0 onwards, you can now pass in quality property inside the options object.
As shown here :- {quality : 1.0}
.
As mentioned in the readme,
1.0
is the highest quality and5.0
is the lowest quality. Any values not in this range will default to the highest quality of1.0
Example :-
scan.scanDoc(onSuccess, onFail, {sourceType : 1, fileName : "myfilename", quality : 2.5});
// sourceType will by default take value 1 if no value is set | 0 for gallery | 1 for camera.
// fileName will take default value "image" if no value set. Supported only on 4.x.x plugin version
function onSuccess(imageURI) {
alert(imageURI);
console.log(imageURI);
//var image = document.getElementById('myImage');
//image.src = imageURI; // For iOS, use image.src = imageURI + '?' + Date.now(); to solve issue 10 if unique fileName is not set.
}
function onFail(message) {
alert('Failed because: ' + message);
}
Closing this issue as upgrading to plugin version 4.1.0
should solve all of the following related issues #35, #46 & #47. If there are any problems in your trials please raise a new issue.
After getting edges of the document ... when I save the end of the scanning process the screen is just black with options at the top for adding filters .... What could be wrong?
Am using Huawei LT adroid 6.0
Thank you