Rev 535 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 535 | Rev 562 | ||
---|---|---|---|
Line 2... | Line 2... | ||
2 | # This is a script to break a gif photo into pieces. |
2 | # This is a script to break a gif photo into pieces. |
3 | 3 | ||
4 | cd `dirname $0` |
4 | cd `dirname $0` |
5 | flydraw=../../../../other/bin/flydraw |
5 | flydraw=../../../../other/bin/flydraw |
6 | 6 | ||
7 | list=`cd photos; ls *.gif | sed 's/.gif$//'` |
7 | list=`cd ../photos; ls *.gif | sed 's/.gif$//'` |
8 | 8 | ||
9 | for name in $list |
9 | for name in $list |
10 | do |
10 | do |
11 | if [ "$name" = "small" ]; then continue; fi |
11 | if [ "$name" = "small" ]; then continue; fi |
12 | if [ -f pieces/$name/2/p.0.0.gif ]; then continue; fi |
12 | if [ -f pieces/$name/2/p.0.0.gif ]; then continue; fi |
13 | 13 | ||
14 |
|
14 | photo=../photos/$name.gif |
15 |
|
15 | #siz=`(identify -verbose '%x:%y' $photo | grep -i 'geometry:' \ |
16 | | grep -iv page | awk '{print $2}') 2>/dev/null` |
16 | # | grep -iv page | awk '{print $2}') 2>/dev/null` |
- | 17 | siz=`identify -format '%wx%h' $photo` |
|
17 | if [ -z "$siz" ]; then |
18 | if [ -z "$siz" ]; then |
18 | echo ImageMagick missing in your system. Impossible to cut photos. |
19 | echo ImageMagick missing in your system. Impossible to cut photos. |
19 | echo Program aborted. |
20 | echo Program aborted. |
20 | exit |
21 | exit |
21 | fi |
22 | fi |