mktar: Use `wc` instead of `du` in summary message
[sunny256-utils.git] / rdbl-picture
blob67d69b625b4e570305c0b982b719e54389a97c71
1 #!/usr/bin/env bash
3 #==============================================================================
4 # rdbl-picture
5 # File ID: 066787c0-ef0d-11e7-a30f-f74d993421b0
7 # Display EXIF info and an ASCII representation of a picture on stdout. Can for
8 # example be used as a diff filter in Git.
10 # Author: Øyvind A. Holm <sunny@sunbase.org>
11 # License: GNU General Public License version 2 or later.
12 #==============================================================================
14 progname=rdbl-picture
15 VERSION=0.1.1
17 tmpfile=/tmp/.$progname.$(date +%s).$$.xpm
18 exiftool -api LargeFileSupport=1 "$1"
19 echo
20 convert "$1" "$tmpfile"
21 cat "$tmpfile"
22 rm -f "$tmpfile"