blob: 4d81e011c67da342edf64918c9f8375cddd209fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#!/bin/sh
# Rough equivalents to XV's Sharpen algorithm
cat > sharpen50.pgm << xx
P2 3 3 18
8 8 8 8 26 8 8 8 8
xx
cat > sharpen66.pgm << xx
P2 3 3 18
7 7 7 7 34 7 7 7 7
xx
cat > sharpen75.pgm << xx
P2 3 3 6
2 2 2 2 14 2 2 2 2
xx
cat > sharpen90.pgm << xx
P2 3 3 2
0 0 0 0 10 0 0 0 0
xx
for x in `ls *.crw | cut -d. -f1`
do
dcraw -f -c $x.crw | pnmconvol sharpen66.pgm \
| cjpeg -quality 90 > $x.jpeg
touch -r $x.crw $x.jpeg
done
|