Advertisement
N3ll4

Bash- Metaremover

Apr 18th, 2024 (edited)
893
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.52 KB | Source Code | 0 0
  1. #!/bin/bash
  2.  
  3. if ! command -v exiftool &> /dev/null
  4. then
  5.     echo "exiftool ist nicht installiert. Bitte installieren Sie es, um fortzufahren."
  6.     exit 1
  7. fi
  8.  
  9. if [ -z "$1" ]
  10. then
  11.     echo "Bitte geben Sie den Pfad zur Datei als Argument ein."
  12.     exit 1
  13. fi
  14.  
  15. file_path="$1"
  16.  
  17. if [ ! -f "$file_path" ]
  18. then
  19.     echo "Die angegebene Datei existiert nicht."
  20.     exit 1
  21. fi
  22.  
  23. echo "Entferne Metadaten aus $file_path ..."
  24. exiftool -all= -overwrite_original "$file_path"
  25.  
  26. echo "Metadaten wurden aus $file_path entfernt."
  27.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement