Compare commits
No commits in common. "c7d89d7f1b9190afc99d6c182c1eea3beb98e716" and "abbdf0758383ae46974fc0464b7d66cd5b2ff142" have entirely different histories.
c7d89d7f1b
...
abbdf07583
2 changed files with 0 additions and 8 deletions
|
@ -4,19 +4,11 @@ def main [path: string] {
|
|||
glob $path | each { |item|
|
||||
match ($item | path parse | get extension | str downcase) {
|
||||
"jpg" | "jpeg" | "png" => {
|
||||
do -i {
|
||||
xattr -d com.apple.metadata:kMDItemWhereFroms $item
|
||||
xattr -d com.apple.metadata:kMDItemComment $item
|
||||
}
|
||||
exiftool -all= -overwrite_original_in_place $item
|
||||
},
|
||||
"mp4" => {
|
||||
let tmp_item = $"($item)_out.mp4"
|
||||
|
||||
do -i {
|
||||
xattr -d com.apple.metadata:kMDItemWhereFroms $item
|
||||
xattr -d com.apple.metadata:kMDItemComment $item
|
||||
}
|
||||
ffmpeg -i $item -map_metadata -1 -c:v copy -c:a copy $tmp_item
|
||||
rm $item
|
||||
mv $tmp_item $item
|
||||
|
|
Binary file not shown.
Loading…
Reference in a new issue