Repository navigation
[Camera] ResolutionPreset.max is producing 4k but not camera max images #45906
Copy link
Copy link
Open
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: qualityA truly polished experienceA truly polished experiencefound in release: 2.2Found to occur in 2.2Found to occur in 2.2found in release: 2.6Found to occur in 2.6Found to occur in 2.6has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onp: cameraThe camera pluginThe camera pluginpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-androidAndroid applications specificallyAndroid applications specificallyplatform-iosiOS applications specificallyiOS applications specificallyteam-ecosystemOwned by Ecosystem teamOwned by Ecosystem teamtriaged-ecosystemTriaged by Ecosystem teamTriaged by Ecosystem team
Description
Steps to Reproduce
- Copy/Paste source code of camera example
- Modify ResolutionPreset.medium to ResolutionPreset.max
- Take an image and check resolution. Resolution is 3840x2160 instead of the Pixel3 standard 3024 × 4032. Also, it is compressed a lot, size is around 900KB instead of normal 3-4MB
Target Platform:
Android
Target OS version/browser:
Android 10
Devices:
Pixel 3
flutter doctor -v
[✓] Flutter (Channel dev, v1.12.15, on Mac OS X 10.15.1 19B88, locale en-CH)
• Flutter version 1.12.15 at /Users/ameyer/flutter
• Framework revision 459c7fb884 (6 days ago), 2019-11-26 17:04:51 +0000
• Engine revision e136d637a8
• Dart version 2.7.0
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.1)
• Android SDK at /Users/ameyer/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.0.1
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 11.2.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.2.1, Build version 11B500
• CocoaPods version 1.8.4
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 3.5)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 41.1.2
• Dart plugin version 191.8593
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
[✓] IntelliJ IDEA Ultimate Edition (version 2019.3)
• IntelliJ at /Applications/IntelliJ IDEA.app
• Flutter plugin version 41.1.5
• Dart plugin version 193.5233.116
[!] VS Code (version 1.40.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
✗ Flutter extension not installed; install from
https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[✓] Connected device (3 available)
• Pixel 3 • 8AUX0ZGMN • android-arm64 • Android 10 (API 29)
• Chrome • chrome • web-javascript • Google Chrome 78.0.3904.108
• Web Server • web-server • web-javascript • Flutter Tools
! Doctor found issues in 1 category.Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: qualityA truly polished experienceA truly polished experiencefound in release: 2.2Found to occur in 2.2Found to occur in 2.2found in release: 2.6Found to occur in 2.6Found to occur in 2.6has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onp: cameraThe camera pluginThe camera pluginpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-androidAndroid applications specificallyAndroid applications specificallyplatform-iosiOS applications specificallyiOS applications specificallyteam-ecosystemOwned by Ecosystem teamOwned by Ecosystem teamtriaged-ecosystemTriaged by Ecosystem teamTriaged by Ecosystem team
Type
Projects
- StatusShow more project fields[PENDING] camera_android issues solved by camera_android_camerax
Activity
xxxxlr commentedon Mar 8, 2020
1996SEJR commentedon Jun 10, 2020
zhuwei commentedon Jul 28, 2020
TahaTesser commentedon Sep 3, 2021
I can confirm the issue, when setting
ResolutionPreset.maxin the official example on the latestcamera: ^0.9.2+2Android
p: cameraiOS
p: camerastablemasterCheck
flutter doctor -voutputs for each channel belowflutter doctor -v
✅: No Issue ❗️: Issue reproduced
ayberkcal commentedon Dec 11, 2021
Is there any progress? Package is almost useless because of this bug.
11 remaining items
LP0815 commentedon Oct 10, 2023
In short: I am still not able to take a photo in full resolution. Anyone else still got this problem with the flutter camera package or tapeos fork?
[camera_avfoundation] Set highest available resolution for Resolution…
[camera_avfoundation] Set highest available resolution for Resolution…
camsim99 commentedon Mar 27, 2024
For Android, this issue should be fixed in the CameraX implementation of the camera plugin, so please try it out!
If you find a similar issue with that implementation (or any other issues), please feel free to file a separate issue.
[camera_avfoundation] Set highest available resolution for Resolution…
[camera_avfoundation] Set highest available resolution for Resolution…