HarmonyOS image.PropertyKey.ORIENTATION 返回的 Unknown value 0

操作步骤:

imageSourceApi.getImageProperty(image.PropertyKey.ORIENTATION) 
  .then((data: string) => { 
    console.info('Succeeded in getting the value of the specified attribute key of the image.'); 
  }).catch((error: BusinessError) => { 
  console.error('Failed to get the value of the specified attribute key of the image.'); 
})
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
HarmonyOS
2024-11-13 09:22:46
浏览
收藏 0
回答 1
回答 1
按赞同
/
按时间
zbw_apple

图片的exif信息有值自然又可以获取到,没有就返回这个 Unknown value 0,系统相机拍照不会携带exit的值。

分享
微博
QQ
微信
回复
2024-11-13 15:51:21


相关问题
unknown相关
531浏览 • 1回复 待解决
napi返回ArrayBuffer有长度但是内容都是0
1541浏览 • 1回复 待解决
如何使用等效使用any、unknown?
2111浏览 • 1回复 待解决
HarmonyOS Resource获取value问题
652浏览 • 1回复 待解决
HarmonyOS 获取Resource中value问题
1025浏览 • 1回复 待解决