hMatoba / piexifjs

Read and modify exif in client-side or server-side JavaScript.
MIT License
573 stars 118 forks source link

Document how to set GPSHPositioningError #79

Open daniel opened 3 years ago

daniel commented 3 years ago

I'm trying to set GPSHPositioningError, but I'm not sure how to do it.

I've tried this:

const accuracy = 123.45 // in meter
gpsIfd[piexif.GPSIFD.GPSHPositioningError] = [Math.round(accuracy), 1]

It works on iOS, but on Android GPSHPositioningError is shown as 0m when I inspect it in an exif viewer app.