fix when crop + smaller pgs

This commit is contained in:
2026-03-05 15:15:57 -06:00
parent c2be0112fb
commit 5261b67a18
2 changed files with 18 additions and 20 deletions

View File

@@ -75,12 +75,8 @@ get_crop() {
# output '1920x1080'
get_resolution() {
local file="$1"
_ffprobe_wrapper \
-v error \
-select_streams v:0 \
-show_entries stream=width,height \
-of csv=s=x:p=0 \
"${file}"
get_stream_json "${file}" 0 |
jq -r '.streams[0] | "\(.width)x\(.height)"'
}
# same as get_resolution