publiclab / blurred-location

A JavaScript library to help manage variable location privacy through a "blurred location" model
GNU General Public License v3.0
4 stars 1 forks source link

Demo to filter EXIF tags #2

Open jywarren opened 5 years ago

jywarren commented 5 years ago

Let's create a demo where we use the exif-js NPM module --

EXIF.getData(img, function() {
      var GPS = EXIF.getAllTags(img);
});

And we filter them to a precision using an integer precision value AND/OR a human language resolution, and write them back in. This is a nice general purpose non-Leaflet usage of this library!

jywarren commented 5 years ago

This would be a great way to demo this lib @sagarpreet-chadha -- fetch the EXIF data from an image that's on the page, use the utilities to truncate it by precision, AND overwrites the original values once blurred.