Blame view

doc/cron/jobs/optimize_jpg.sh 176 Bytes
d1f8bd40   Alexey Boroda   first commit
1
2
3
4
5
6
7
  #!/usr/bin/env bash
  thumb_dir="../web/uploads/thumbs"
  if [ -d $thumb_dir ]
  then
      echo "run optimize"
      find $thumb_dir -name '*.jpg' -exec echo jpegtran -optimize {} \;
  fi