diff options
author | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2021-04-26 01:36:16 +0300 |
---|---|---|
committer | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2021-04-26 01:36:16 +0300 |
commit | 73e21625747853abcbe39b09e38d140da6850636 (patch) | |
tree | def35c0974dccb8409f9d5d7425c347dde319d0a /dotfiles/.local/bin/scope | |
parent | 2dcdb880365f4ac3222e852986e285fdf8789a88 (diff) | |
download | swayrice-73e21625747853abcbe39b09e38d140da6850636.tar.gz swayrice-73e21625747853abcbe39b09e38d140da6850636.zip |
scope: use exiftool instead of mediainfo for images
Diffstat (limited to 'dotfiles/.local/bin/scope')
-rwxr-xr-x | dotfiles/.local/bin/scope | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dotfiles/.local/bin/scope b/dotfiles/.local/bin/scope index 092a206..d3041c1 100755 --- a/dotfiles/.local/bin/scope +++ b/dotfiles/.local/bin/scope @@ -48,7 +48,8 @@ handle_mime() { application/zip) unzip -l -- "${FILE_PATH}" ;; application/gzip) tar -ztf "${FILE_PATH}" ;; application/x-rar) unrar lb -- "${FILE_PATH}" ;; - video/* | audio/*|application/octet-stream | image/*) mediainfo "${FILE_PATH}" | awk -F':' '{ print $2 }' || exit 1;; + video/* | audio/*|application/octet-stream) mediainfo "${FILE_PATH}" | awk -F':' '{ print $2 }' || exit 1;; + image/*) exiftool "${FILE_PATH}";; */pdf) pdftotext -l 10 -nopgbrk -q -- "${FILE_PATH}" - ;; *opendocument*) odt2txt "${FILE_PATH}" ;; *) file -b "${FILE_PATH}" ;; |