-
Notifications
You must be signed in to change notification settings - Fork 13
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
Squashed preview image #96
Comments
Do you have the problem with the plugin without to change the code ? What is the device used ? I had this problem before but I fixed it and after I tested on Nexus 5, Samsung s3 mini, Samsung s4, LG G3, and some other devices. |
Hi Christophe, yes it is like this without changing any code. I have a One Plus One which is a 5.46 in (139 mm) 1920x1080 screen. It's quite large so maybe it has something to do with that? |
Maybe ... So you use cyanogen with a One Plus One ? I never try the plugin on cyanogen, maybe a case particular. I try the plugin on cyanogen and I check. |
Yes, it's using CM. I have access to a few different devices that I could deploy it to, so I will verify the bug on a Moto G (2014) which runs stock Android and see if the same bug applies. Thanks for the help Christophe! |
I tested on cyanogen and I don't have the bug. I rebuild an application and I will test without an overlay image. Maybe a new bug when the plugin doesn't receive an overlay image. |
Weird. How large is the screen you tested on? It's not just my build, I've created a few different apps and get the same result. The only difference I can think of (but it shouldn't matter) is I am using Ionic (which is built on Cordova)? Everything else works perfectly, so I can't see why Ionic would interfere with the plugin's layout or Java code. |
I tested on Nexus 5 (1920x1080) and I don't have the bug :/ Can you try this apk : https://drive.google.com/file/d/0B4pG0sbdp0DCMHFlSElmSlZHMXM/view?usp=sharing. It is my application to test the plugin. Press on an image or on the button "empty" to start the plugin. |
Can you try this apk : https://drive.google.com/file/d/0B4pG0sbdp0DCT3hCSG00S1dsc0U/view?usp=sharing and execute this command In my case, i get this:
because my screen has a 1920x1080 resolution but with the buttons bar (back, home, list tasks), i loose of the space so I must use a small resolution. |
So mine is using the larger screen size. Have you tested it at this resolution before? I have the on screen buttons too. I still experience the "squashed effect" even with on-screen buttons disabled. |
I don't test this resolution because my code choose always 1600x1200. But I think the bug is here. I will search on stackoverflow the solution used to see if I missed something. |
That is understandable. Might it be to do with this?
It seems as though I get different resolutions too compared to your more standard resolutions. |
This message is bad ><. I added it just to see if the plugin uses the first or second |
No worries Christophe, I'll certainly try to fix it if I can, but like I said, I'm not too great with Java and developing plugins! If you have any ideas of how to fix, let me know and I can try implement the changes required. |
For me, it is the getOptimalPreviewSize method which got a problem or maybe the width and the height used to call this method in CameraActivity. For the method, I use the response on stackoverflow. If you fix the bug, you are my hero ^^. This problem blocked me for 2 weeks and I believed that I had fixed it ... :'( Else, I will search the next week to better understand the solution on stackoverflow. |
No problem man, it's the only thing holding me back, the rest of the plugin is great! Looking forward to resolving this soon. |
Hi @dazziola. I have tried with a quick fix. I don't understand really the fix (I found it on stackoverflow). Nothing change for me, can you test this apk ? If the bug is fixed, I will try to include the fix properly (I'm not very confident but maybe with little luck ...). Else, I will search an another solution :). APK : https://drive.google.com/file/d/0B4pG0sbdp0DCSDVScWwwRHR1dzQ/view?usp=sharing |
Note: This fix doesn't work with all orientations. But if the bug is fixed in one orientation, I will adapt it for all orientations. |
Hi Christophe. Apologies for the late reply - busy with work! Will check this out tonight and let you know it is. Thanks! |
Okay :) No problem, I'm busy also so I can't work on the plugin before 2 weeks and only for one day. So you can take your time to test ;) |
Is there anyway to get the ratio of the preview (above) to mimic that of the captured image (below)?
The ratio is different across both preview and captured image which makes it difficult to use this effectively. I've tried to mess around with the Java code, but to no avail. Any help?
The text was updated successfully, but these errors were encountered: