total descendants:: total children::0
|
#!/bin/sh if [ ! -d mensie ]; then mkdir mensie fi ciel="mensie" for subor in `ls *.jpg *.JPG`; do orientation=`exiftags $subor 2> /dev/null|grep Orientation|cut -f2 -d":"` echo $subor $orientation cp $subor $ciel echo -n "doostrujem prvy raz..." nice convert -sharpen 3 -quality 92 $ciel/$subor $ciel/$subor echo "ok" if [ "${orientation}" = " Top, Left-Hand" ]; then echo -n "zmensujem... " nice convert -resize 900x -quality 92 $ciel/$subor $ciel/$subor echo "ok" fi if [ "${orientation}" = " Left-Hand, Bottom" ]; then echo -n "rotujem -90 ... " nice convert -rotate -90 -quality 92 $ciel/$subor $ciel/$subor ; echo "ok" echo "zmensujem... " nice convert -resize x900 -quality 92 $ciel/$subor $ciel/$subor echo "ok" fi echo -n "doostrujem... " nice convert -sharpen 3x0.3 -quality 92 $ciel/$subor $ciel/$subor echo "ok" done |
| |||||||||||||||||||||||||