Metacrawler 2
New version of Metacrawler, erases metadata from any file format, even creating a copy of it, now written in Javascript, using Electron.
Here is Metacrawler 2

How to run
Download or clone the project.
To start run the command.
npm install
then
npm run start
Code example (Remove Metadata Function)
#JAVASCRIPT1document.getElementById('fileInput').addEventListener('change', (event) => { 2 filePath = event.target.files[0].path; 3 removeMetadata(filePath); 4}); 5 6function removeMetadata(filePath) { 7 const originalFilePath = filePath + '_original'; 8 9 exiftool 10 .write(filePath, { all: '' }) 11 .then(() => { 12 Swal.fire({ 13 position: "top-end", 14 icon: "success", 15 title: "¡Metadatos eliminados!", 16 showConfirmButton: false, 17 timer: 1500 18 }); 19 ipcRenderer.send('download-file', filePath); 20 21 fs.unlink(originalFilePath, err => { 22 if (err) { 23 console.error(err); 24 } 25 }); 26 }) 27 .catch(err => console.error(err)); 28} 29 30document.getElementById('downloadButton').addEventListener('click', () => { 31 ipcRenderer.send('download-file', filePath); 32}); 33
Download or Clone the project in Github. Download from Github
License
MIT
- 💜 Acceso al --> Blog