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

Camera plugin ignoring resolutionPreset #20222

Closed
AlexBacich opened this issue Aug 4, 2018 · 5 comments
Closed

Camera plugin ignoring resolutionPreset #20222

AlexBacich opened this issue Aug 4, 2018 · 5 comments
Labels
c: new feature Nothing broken; request for a new capability p: camera The camera plugin P2 Important issues not at the top of the work list package flutter/packages repository. See also p: labels.

Comments

@AlexBacich
Copy link

Hello.

I'm using camera plugin (^0.2.1).

When taking photos it isn't using parameter resolutionPreset. Photos taken are always gigantic 3.8402.160 JPEG 24-bit color on one phone, 3.4564.4608 JPEG 24-bit color on another
http://take.ms/eKPGQ

Right from the example for library - changing ResolutionPreset values does nothing

controller = new CameraController(cameras[0], ResolutionPreset.medium);

I tried couple of Android phones - same problem, just different specific to phone resolution.

@AlexBacich
Copy link
Author

According to the code (as far as I understood) - resolutionPreset only affects on preview size. But not on the taken photo size. Preview size is working.
So I guess this issue should be changed from bug to feature request: adding ability to change quality \ size of photos taken.

@zoechi zoechi added this to the Goals milestone Oct 23, 2018
@zoechi zoechi added the c: new feature Nothing broken; request for a new capability label Oct 23, 2018
@zoechi zoechi added the p: camera The camera plugin label Jan 4, 2019
@raymondr
Copy link

I also noticed this issue. The iOS version does set the capture image size based on ResolutionPreset.

@kf6gpe kf6gpe added the P2 Important issues not at the top of the work list label May 29, 2020
@Hixie Hixie removed this from the None. milestone Aug 17, 2020
@danielroek
Copy link

Doing a quick test on Android I find that taking a picture with ResolutionPreset.medium results in:
I/flutter (28622): File length is 120227
And taking a picture with ResoultionPreset.ultraHigh results in:
I/flutter (28622): File length is 1664740

Looks like this issue can be closed.

@mvanbeusekom
Copy link

Closing this issue, since it is fixed in version 0.5.3 which allows quality presets on Android as well.

@github-actions
Copy link

github-actions bot commented Aug 8, 2021

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 8, 2021
@flutter-triage-bot flutter-triage-bot bot added the package flutter/packages repository. See also p: labels. label Jul 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
c: new feature Nothing broken; request for a new capability p: camera The camera plugin P2 Important issues not at the top of the work list package flutter/packages repository. See also p: labels.
Projects
None yet
Development

No branches or pull requests

7 participants