Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Saves only highest-resolution image? #54

Open
smhk opened this issue Nov 26, 2016 · 3 comments
Open

Saves only highest-resolution image? #54

smhk opened this issue Nov 26, 2016 · 3 comments

Comments

@smhk
Copy link

smhk commented Nov 26, 2016

Thanks for this incredible library. When you save, it seems to save the highest-available resolution matching the ratio. Often you want mid-resolution. (1) where to look in the code to change this? (2) Perhaps in the future it would be possible to add a tag app:save_resolution="high" "mid" "low". Thanks again.

@jaksab
Copy link

jaksab commented Nov 30, 2016

Or set the some resolution from available camera parameters

@owlstack
Copy link

How is the camera using the highest resolution image right now?

@javayhu
Copy link

javayhu commented Sep 26, 2017

@smhk

for Camera1, the code lies in line 333

final Size pictureSize = mPictureSizes.sizes(mAspectRatio).last();

for Camera2, the code lies in line 450

Size largest = mPictureSizes.sizes(mAspectRatio).last();

change the strategy if it doesn't fit meet your demands :-)

ewolfox pushed a commit to ewolfox/cameraview that referenced this issue Apr 13, 2018
…oogle#54)

* Layout changes

* SurfaceView onSurfaceCreated is too early. Fix

* Add logs

* Refactor some classes, fix hardware acceleration bug, disable cropping for SurfaceView

* Update README with known limitations
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants