2015-10-13 19:27:41 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
filename=$(basename "$1")
|
|
|
|
filesize=$(du -Hh "$1" | cut -f 1)
|
|
|
|
|
2017-02-09 09:54:38 +01:00
|
|
|
## The '[0]' stands for the first frame of a multi-frame file, e.g. gif.
|
|
|
|
geometry=$(identify -format '%wx%h' "$1[0]")
|
2015-10-13 19:27:41 +02:00
|
|
|
|
2016-12-23 15:44:23 +01:00
|
|
|
printf "%s | %s | %s" "$filename" "$filesize" "$geometry"
|