Open giordy16 opened 1 month ago
I had a similar issue when using the official camera package. On iOS I had an extension method that had wrongly used a RGBA input channel order instead of BGRA. My advice is to take a picture of the red-green-blue and see if they are inverted. If yes, you may be dealing with the same issue.
Steps to Reproduce
In my app I need a play/pause button to freeze/resume the camera stream. For this reason I am building a
CameraAwesomeBuilder.previewOnly
Widget, where on thebuilder: (cameraModeState, preview)
I have put a button that when is clicked shows/hidesjpegImage
(so it seems that the video is freezed), which is assigned like thisThe problem is that on my iphone 14 where I am testing, img is
Bgra8888Image
, and thetoJpeg()
gives back an image which is missing the red component (i think, overall the image is not correct).Expected results
Actual results
About your device
Your flutter version
Flutter 3.19.6 • channel stable • https://github.com/flutter/flutter.git Framework • revision 54e66469a9 (3 weeks ago) • 2024-04-17 13:08:03 -0700 Engine • revision c4cd48e186 Tools • Dart 3.3.4 • DevTools 2.31.1