Skip to content
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

Merge westonganger #175

Merged
merged 27 commits into from Feb 12, 2017
Merged

Merge westonganger #175

merged 27 commits into from Feb 12, 2017

Conversation

westonganger
Copy link
Collaborator

No description provided.

westonganger and others added 27 commits March 4, 2016 09:41
…emove extra android folders, update plugin id
so npmjs.com will display a link to github
* Continous auto focus mode for android camera

Solution adapted from
#53 (comment)

* Update README.md

* Update README.md

* Improve compatibility with other plugins.
Insert UIView at a relative tree location to cordova's UIWebView rather
than at an absolute location.

* Add config options

* Add config options

* Use generated id for view to prevent conflicts.

* Use 0/0 as resolution when none is specified.

* Use height in android preview size computation.
The original base64-encoded bitmap tended to be very large for hi-res
cameras; this caused long loading times loading the base64 string into
an image (data: uri).

To mitigate the output bitmap is now scaled to the original view size,
and the JPEG compression is down to 85 from 95.

Additionally, I removed the newlines from the base64 output.
Removes the carriage returns form base64 string
* Includes the base64 header into the picture base64 string

* Updates setOnPictureTakenHandler documentation

* removes base64 part of the documentation as it is outdated
* Update android code to correctly crop and scale the image

* Fix argument types

* Fix missing files
Per #8 of this doc https://developer.android.com/reference/android/hardware/Camera.html, after a picture was taken the preview must be restarted
@westonganger westonganger merged commit e4906a1 into master Feb 12, 2017
@westonganger westonganger deleted the develop branch February 12, 2017 02:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants