Open dtkdt100 opened 12 months ago
hi . i have same issue . is there any update ?
hi . i have been work around and found solution
FutureOr<Uint8List> _convertBra8888fromJpeg(
Bgra8888Image data,
) async {
return img.encodePng(
img.Image.fromBytes(
width: data.width,
height: data.height,
bytes: data.planes[0].bytes.buffer,
order: img.ChannelOrder.bgra,
),
);
}
using package image can resolve this issue
Steps to Reproduce
Download example app, run
analysis_image_filter_picker.dart
app. The result image analysis (even without filter) will be colored in blue and not in original colors as the preview. It happens only after converting the image to jpeg.When tried to manually convert the image to jpeg using
image
, it works in vertical mode but not in horizontal images. In vertical mode it show the original colors, but when rotating the image starts to change its colors. I thought that the problem is in the order of the image, but changed it to all options with no success.Expected results
The colors of the analysis should be the same as the preview.
Actual results
it looks like the app has blue filter, although it doesn't
About your device
iPhone 11 (16.5.1). Tried on multiple versions and iOS models, results are the same.
Your flutter version
Flutter 3.10.5 • channel stable •