Djones4822 edited a comment on pull request #1385:
URL: https://github.com/apache/cordova-android/pull/1385#issuecomment-1068396055


   I was using your hotfix.zip archive to hook the camera intent, I noticed 
that the pictures being uploaded were unusually small - only 150x200px. I 
believe this is because you are accessing the "thumbnail data" instead of the 
full picture data.
   
   I base this on the sample code provided in the android documentation here: 
https://developer.android.com/training/camera/photobasics#java
   
   Within the `onActivityResult()` definition, you define `Bundle bundle = 
data.getExtras();` on line 288, and then on line 313 you create the bitmap 
using `Bitmap bmp = (Bitmap) bundle.get("data");` - this is exactly how they 
access the thumbnail with the warning "Note: This thumbnail image from "data" 
might be good for an icon, but not a lot more. Dealing with a full-sized image 
takes a bit more work. "
   
   I will update as I continue research. Thanks for your work toward this 
problem! 
   
   edit: I think this is due to line 258 being commented out, and then the 
compressed thumbnail being written to the output path. However, uncommenting 
258 and commenting out 313-318 causes the camera to crash after clicking "OK" - 
not sure why. Still researching...


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to