【发布时间】:2020-11-15 14:05:24
【问题描述】:
flutter image_picker 图像中没有添加 gps 数据
final pickedFile = await imagePicker.getImage(source: ImageSource.camera);
final bytes = await pickedFile.readAsBytes();
final tags = await readExifFromBytes(bytes);
print("Tags : $tags ");
标签:(无 Gps 数据)
{Image ImageWidth: 4624, Image Model: Redmi Note 8 Pro, Image ImageLength: 3472, Image Orientation: Rotated 90 CW, Image DateTime: 2020:11:15 18:15:14, Image ExifOffset: 142, Image Make: Xiaomi, EXIF FNumber: 189/100, EXIF FocalLength: 543/100, EXIF ExposureTime: 50003/1000000, EXIF Flash: Flash did not fire, EXIF ISOSpeedRatings: 3750, EXIF ExifImageLength: 3472, EXIF ExifImageWidth: 4624, EXIF ApertureValue: 46/25, EXIF ShutterSpeedValue: -431/100, EXIF SubSecTime: 530}
顺便说一句,拍照时(第一次)没有要求我允许位置,我需要添加任何权限吗?
【问题讨论】:
-
这是什么意思,你需要一个图片的位置。或点击图片时的唯一位置
-
需要照片的位置,默认相机应用拍摄的照片会添加位置数据到图像中。
-
@invariant,你能完成你的问题吗?你能发布你的解决方案吗?