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.'); 
})
HarmonyOS
2024-11-13 09:22:46
浏览
收藏 0
回答 1
待解决
回答 1
按赞同
/
按时间
zbw_apple

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

分享
微博
QQ
微信
回复
2024-11-13 15:51:21
相关问题
napi返回ArrayBuffer有长度但是内容都是0
1375浏览 • 1回复 待解决
unknown相关
294浏览 • 1回复 待解决
如何使用等效使用any、unknown?
1863浏览 • 1回复 待解决
HarmonyOS Resource获取value问题
363浏览 • 1回复 待解决
HarmonyOS 获取Resource中value问题
738浏览 • 1回复 待解决