sxiv: Display only first frame resolution

master
Pierre Neidhardt 2017-02-09 09:54:38 +01:00
parent 4b16032466
commit f979d0e627
1 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,7 @@
filename=$(basename "$1")
filesize=$(du -Hh "$1" | cut -f 1)
geometry=$(identify -format '%wx%h' "$1")
## The '[0]' stands for the first frame of a multi-frame file, e.g. gif.
geometry=$(identify -format '%wx%h' "$1[0]")
printf "%s | %s | %s" "$filename" "$filesize" "$geometry"