### creates thumbnails for moldenhauer images for item in 0002 0003 0004 0005 0006 0315 0342 0344 0417 0429 0507 0508 0509 0568 0619 0620 0652 0661 0717 0794 0906 0921 0922 0923 0924 0925 0926 0927 0928 0929 0930 0931 0932 1064 1106 1138 1149 1168 1207 1269 1300 1513 1514 1515 1525 1538 1553 1751 1752 1753 1754 1755 1768 1785 1818 1840 1847 1990 2101 2106 2108 2160 2321 2322 2508 2539 2646 2774 2785 2806 2821 2822 2879 2883 2884 2890 2894 2898 2900 3073 3094 3100 3102 3115 3118 3119 3120 3121 3124 3125 3134 3142 3143 3144 3303 3304 3308 3309 3315 3324 3325 3326 3328 3329 3338 3339 3340 3342 3348 3355 3356 3361 3509 3519 3521 3540 3543 3544 3545 3546 3547 3557 3558 3580 3582 3584 3585 3586 3587 3588 3592 3593 3596 3599 3606 3624 3713 3728 3938 4183 4282 4321 4392 4581 4984 5039 5316 5327 5424 5427 5428 5557 6481 7829 8368 9999 do cd /service/music/molden/${item} if test -e 001*v.jpg then for file in $(ls 001*v.jpg) do ### this section creates the t.jpgs (200 pixels wide landscape or 150 pixels wide portrait) alchemy -x1 ${file} -Q| sed -n 5p | cut -d":" -f2 | read width echo "${width}" alchemy -x1 ${file} -Q| sed -n 6p | cut -d":" -f2 | read height echo "${height}" if [[ $width -gt $height ]]; then print "landscape" ### alchemy ${file} -- -Zm2 -D72 -Xd200 -+ -j80 -o --. alchemy ${file} -- -c16 -Xd150 -+ -g1 -o --. ### alchemy *.jpg -- -c16 -Xd500 -+ -g1 -o --. echo "${file}" | cut -d"v" -f1 | read oldfile mv ${oldfile}v.gif ${item}t.gif else print "portrait" ### alchemy ${file} -- -Zm2 -D72 -Xd150 -+ -j80 -o --. alchemy ${file} -- -c16 -Yd150 -+ -g1 -o --. echo "${file}" | cut -d"v" -f1 | read oldfile mv ${oldfile}v.gif ${item}t.gif fi done fi done