You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[camera] Add setImageQuality for JPEG compression control
Adds `setImageQuality(int quality)` (1-100 scale) across the camera
plugin ecosystem to allow developers to control JPEG compression
quality for still image capture. Users who do not call setImageQuality
retain the platform's native default behavior.
Implementation details per platform:
- Platform interface: abstract method + method channel implementation
- App-facing: CameraController.setImageQuality with range validation
- Android (Camera2): JpegQualityFeature using CaptureRequest.JPEG_QUALITY
- Android (CameraX): Recreates ImageCapture with Builder.setJpegQuality,
preserving locked capture orientation
- iOS (AVFoundation): EXIF-preserving JPEG recompression via
CGImageSource/CGImageDestination (ImageIO), gated on JPEG format only
Copy file name to clipboardExpand all lines: packages/camera/camera_android/CHANGELOG.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,7 @@
1
+
## 0.10.11
2
+
3
+
* Adds `setImageQuality` for controlling JPEG compression quality.
4
+
1
5
## 0.10.10+15
2
6
3
7
* Updates example to demonstrate correct exception handling for async return statements, ensuring exceptions thrown during return within try blocks are properly caught as per [dart-lang/sdk#44395](https://github.com/dart-lang/sdk/issues/44395).
0 commit comments