1
0
Fork 0

Compare commits

...

2 commits

Author SHA1 Message Date
c7d89d7f1b
media: updates 2024-10-02 10:25:26 +02:00
b3836e31b2
strip-metadata: update 2024-10-02 10:25:26 +02:00
2 changed files with 8 additions and 0 deletions

View file

@ -4,11 +4,19 @@ 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