#!/bin/bash # --------------------------------------------------------------------- # limitations: extensions supportés jpg JPG # # dépend des scripts suivant : # - photo_thumbElem.sh # qui dépend de # - photo_thumbCheckExist.sh # # Author/Contact : "ruchbach" sur nas-forum // "ruchbach" on forum.synology.com # --------------------------------------------------------------------- # fichier de conf utilisé par /usr/syno/bin/synothumb: # /usr/syno/etc.defaults/thumb.conf # # interface utilisateur # DISPLAY MULTILANGUE # -------------------------- FR=`echo $LANG | grep fr | wc -l` if [ $FR == 1 ] then echo " Ce script genere les miniatures pour photostation " echo "---------------------------------------------------" else echo " This script generates automatically thumbansil for photostation " echo "-----------------------------------------------------------------" fi # inputs # ------ # $1 = repertoire export inputDir="$1" # récupère les jpg et JPG puis converti find "$inputDir" \( -type f -a \( -name "*.JPG" -o -name "*.jpg" \) ! -path "*@eaDir*" \) -exec photo_thumbElem.sh {} \; # FINAL DISPLAY if [ $FR == 1 ] then echo "--------------------------------------------" echo "- il faut maintenant relancer l'indexation -" echo "- pour que les miniatures soient prises en -" echo "- compte dans photo-station -" echo "-------------------- FIN -------------------" else echo "-----------------------------------------" echo "- you should now launch re-index in DSM -" echo "- for the thumbnails to be taken into -" echo "- account by photo-station -" echo "-------------------- END ----------------" fi