mediasnacks 0.25.0 → 0.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/index.js +22 -0
- package/package.json +14 -6
- package/src/avif.js +18 -27
- package/src/cli.js +45 -39
- package/src/countframes.js +6 -15
- package/src/detectdups.js +10 -21
- package/src/dlaudio.js +38 -0
- package/src/dlvideo.js +32 -0
- package/src/dropdups.js +2 -10
- package/src/edgespic.js +6 -17
- package/src/frameseq.js +10 -16
- package/src/hev1tohvc1.js +11 -18
- package/src/moov2front.js +12 -21
- package/src/{random.js → openrand.js} +8 -10
- package/src/play.js +2 -8
- package/src/png.js +34 -0
- package/src/prores.js +5 -11
- package/src/qdir.js +1 -10
- package/src/resize.js +23 -28
- package/src/seqcheck.js +16 -18
- package/src/sqcrop.js +17 -25
- package/src/ssim.js +1 -9
- package/src/unemoji.js +79 -0
- package/src/utils/fs-utils.js +1 -1
- package/src/utils/parseOptions.js +1 -0
- package/src/vsplit.js +2 -8
- package/src/vtrim.js +7 -10
- package/src/dlaudio.sh +0 -4
- package/src/dlvideo.sh +0 -4
- package/src/png.sh +0 -20
- package/src/unemoji.sh +0 -30
package/src/dlaudio.sh
DELETED
package/src/dlvideo.sh
DELETED
package/src/png.sh
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
|
|
3
|
-
help() {
|
|
4
|
-
/bin/cat << EOF
|
|
5
|
-
SYNOPSIS
|
|
6
|
-
mediasnacks png <img1> [img2 ...]
|
|
7
|
-
|
|
8
|
-
DESCRIPTION
|
|
9
|
-
Losslessly optimizes PNG images with oxipng at max level.
|
|
10
|
-
|
|
11
|
-
EXAMPLE
|
|
12
|
-
mediasnacks png *.png
|
|
13
|
-
EOF
|
|
14
|
-
exit "${1:-0}"
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
[ "$1" = "-h" ] && help
|
|
18
|
-
[ $# -eq 0 ] && help 1
|
|
19
|
-
|
|
20
|
-
oxipng --opt max "$@"
|
package/src/unemoji.sh
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
|
|
3
|
-
# Removes emoji's from filenames on the current working directory.
|
|
4
|
-
# Does not overwrite files.
|
|
5
|
-
|
|
6
|
-
find . -depth | while IFS= read -r file; do
|
|
7
|
-
dir=$(dirname "$file")
|
|
8
|
-
base=$(basename "$file")
|
|
9
|
-
|
|
10
|
-
# Remove Emojis
|
|
11
|
-
newbase=$(printf '%s' "$base" | perl -CSD -pe '
|
|
12
|
-
s/[\x{1F600}-\x{1F64F}]//g; # Emoticons
|
|
13
|
-
s/[\x{1F300}-\x{1F5FF}]//g; # Misc Symbols and Pictographs
|
|
14
|
-
s/[\x{1F680}-\x{1F6FF}]//g; # Transport and Map
|
|
15
|
-
s/[\x{2600}-\x{26FF}]//g; # Misc symbols
|
|
16
|
-
s/[\x{2700}-\x{27BF}]//g; # Dingbats
|
|
17
|
-
s/[\x{1F900}-\x{1F9FF}]//g; # Supplemental Symbols and Pictographs
|
|
18
|
-
s/[\x{1FA70}-\x{1FAFF}]//g; # Symbols and Pictographs Extended-A
|
|
19
|
-
s/[\x{1F1E6}-\x{1F1FF}]//g; # Regional Indicator Symbols
|
|
20
|
-
')
|
|
21
|
-
|
|
22
|
-
# Normalize to Unicode NFKC
|
|
23
|
-
newbase=$(printf '%s' "$newbase" | perl -CSD -MUnicode::Normalize -pe '$_ = NFKC($_)')
|
|
24
|
-
|
|
25
|
-
if [ "$base" != "$newbase" ]; then
|
|
26
|
-
newpath="$dir/$newbase"
|
|
27
|
-
echo "Renaming: $file -> $newpath"
|
|
28
|
-
mv -n "$file" "$newpath"
|
|
29
|
-
fi
|
|
30
|
-
done
|