Because in our digital times a picture really says more than a thousand words.
Anyone uploading (profile) pictures to social media sites like Facebook, Instagram, Twitter and other platforms.
Anyone concerned about online privacy. Exif tags reveal a lot of information that should be kept private.
Anyone sharing photos via social media, e-mail or messenging apps like WhatsApp or Snapchat.
Anyone dating online and exchanging (explicit) pictures.
Exif metadata is of course not dangerous per se but it can reveal quite a lot of information that you might want to keep private.
If, for example, GPS location data is saved as metadata in a picture you take, it will be visible to any of the aforementioned social media platforms.
This is especially concerning if you upload portraits of yourself or others since this allows for very precise tracking.
The Exif metadata is stored in the JPEG file at a specific position. With the help of the exif.js library and a few lines of hacky (and ugly) code we could remove the unwanted bits.
But by using modern HTML5 elements we can skip this and simply "buffer" the image as a Blob object and then save it again as a JPG.
The image metadata is lost in the process.
The image you see in the preview above is the exact same image you uploaded, but without the Exif information.