annotate TOOLS/midentify.sh @ 27409:e2de11109139
If (has outline) blur(outline) else blur(glyph).
If there is an outline, the glyph itself should not be blurred. Keeps
the border between glyph and outline clear (unblurred), which is
probably how it should be.
Patch by Diogo Franco (diogomfranco gmail com).
author |
eugeni |
date |
Thu, 07 Aug 2008 22:20:58 +0000 |
parents |
305dc504c407 |
children |
877e37095c2d |
rev |
line source |
27198
|
1 #!/bin/sh
|
|
2 #
|
|
3 # This is a wrapper around the -identify functionality.
|
|
4 # It is supposed to escape the output properly, so it can be easily
|
|
5 # used in shellscripts by 'eval'ing the output of this script.
|
|
6 #
|
|
7 # Written by Tobias Diedrich <ranma+mplayer@tdiedrich.de>
|
|
8 # Licensed under GNU GPL.
|
|
9
|
|
10 if [ -z "$1" ]; then
|
|
11 echo "Usage: midentify.sh <file> [<file> ...]"
|
|
12 exit 1
|
|
13 fi
|
|
14
|
|
15 mplayer -vo null -ao null -frames 0 -identify "$@" 2>/dev/null |
|
|
16 sed -ne '/^ID_/ {
|
|
17 s/[]()|&;<>`'"'"'\\!$" []/\\&/g;p
|
|
18 }'
|