8000 [camera] Allow custom resolution and aspect ratio · Issue #45665 · flutter/flutter · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[camera] Allow custom resolution and aspect ratio #45665

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

Open
mr-52hz opened this issue Nov 27, 2019 · 19 comments
Open

[camera] Allow custom resolution and aspect ratio #45665

mr-52hz opened this issue Nov 27, 2019 · 19 comments
Labels
c: new feature Nothing broken; request for a new capability c: proposal A detailed proposal for a change to Flutter customer: crowd Affects or could affect many people, though not necessarily a specific customer. p: camera The camera plugin P3 Issues that are less important to the Flutter project package flutter/packages repository. See also p: labels. team-ecosystem Owned by Ecosystem team triaged-ecosystem Triaged by Ecosystem team

Comments

@mr-52hz
Copy link
mr-52hz commented Nov 27, 2019

there are only 5 enum selections.and we can not customize the size of picture which i take.
i want to get a pic with low's 320*240 (4:3) and high quality.but i can not make it. Why the resolution and aspect ratio should be bound together, how to set them separately and take photos of various quality with specific aspect ratio

@mr-52hz
Copy link
Author
mr-52hz commented Nov 27, 2019

for example if i want to take a pic with 960*1280,what i can do.

@iapicca iapicca added p: camera The camera plugin p: first party c: proposal A detailed proposal for a change to Flutter c: new feature Nothing broken; request for a new capability labels Nov 27, 2019
@iapicca iapicca changed the title CameraController(frontCamera, ResolutionPreset.low) params are limit [camera] Allow custom resolution Nov 27, 2019
@LTY2009
Copy link
LTY2009 commented Nov 29, 2019

I also miss this question.how about setting a fixed aspect ratio firstly and then chosing the quality.

@iapicca iapicca added the customer: crowd Affects or could affect many people, though not necessarily a specific customer. label Dec 2, 2019
@iapicca
Copy link
Contributor
iapicca commented Dec 2, 2019

Hi @LTY2009
I think you are making a good point,
I feel that there's no harm in widening the topic a bit,
updating the title.
Thank you

@iapicca iapicca changed the title [camera] Allow custom resolution [camera] Allow custom resolution and aspect ratio Dec 2, 2019
@mr-52hz
Copy link
Author
mr-52hz commented Dec 13, 2019

anybody else ?

@ghost
Copy link
ghost commented Feb 18, 2020

I'm annoyed by the fixed aspect ratio in the resolution preset. Ultra high, hight and Max all have 16:9 ratio, that mean the cameras with 4:3 sensor have areas cut off

@stuartmorgan-g stuartmorgan-g added the P3 Issues that are less important to the Flutter project label Jul 11, 2021
@athemeroy
Copy link
athemeroy commented Aug 11, 2021

I need this feature, too.
I'm writing an app for a device with a 1536x1536 resolution camera, which is 1:1.
The default resolution presets are all 16:9, therefore resolution.max returns 640*480. What's worse, it cuts off all the remaining pixels.
What can I do to customize the resolution?

@lahdekorpi
Copy link
8000

This is a major oversight in the plugin. With low being, the only one with a 4:3 aspect ratio means that all the other ones are cropping into the sensor. If you want to have the widest field of view, you would have to either use the low resolution or write a custom native camera plugin?

Are there any workarounds or forked versions that solve this?

@G2G2G2G

This comment was marked as off-topic.

@migalv

This comment was marked as off-topic.

@G2G2G2G

This comment was marked as off-topic.

@Shawn-sudo

This comment was marked as off-topic.

@G2G2G2G

This comment was marked as off-topic.

@18manfish

This comment was marked as off-topic.

@darshankawar
Copy link
Member

Please be aware of the wordings used in the comments and I strongly recommend to go through code of conduct to adhere to while commenting.

@18manfish

This comment was marked as abuse.

@G2G2G2G

This comment was marked as abuse.

@panzikeji
Copy link

Do you have a good solution to this problem now

@lahdekorpi
Copy link

Do you have a good solution to this problem now

Yes, https://github.com/Apparence-io/CamerAwesome

@ioridev
Copy link
ioridev commented Aug 30, 2023

I think CamerAwesome is just cropping an image that was cropped to 16:9 to 4:3 again. I need an option to use the full sensor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: new feature Nothing broken; request for a new capability c: proposal A detailed proposal for a change to Flutter customer: crowd Affects or could affect many people, though not necessarily a specific customer. p: camera The camera plugin P3 Issues that are less important to the Flutter project package flutter/packages repository. See also p: labels. team-ecosystem Owned by Ecosystem team triaged-ecosystem Triaged by Ecosystem team
Projects
None yet
Development

No branches or pull requests

0