:ini1 set gfini= :ini2 rem Definition du dossier source if exist "%DIRsource%" goto ini3 set question= color 71 cls echo /----------------------------------------------------------------------------\ echo I I echo I I echo I *** DOSSIER SOURCE *** I echo I I echo I I echo \----------------------------------------------------------------------------/ echo. echo. echo. echo Ou se trouve le r‚pertoire des images sources … traiter ??? echo. echo SANS le caratŠre "\" … la fin !!! echo. echo. echo. echo. echo. echo. echo. echo Utilisez le clic droit pour "coller" [...] echo Validez en appuyant sur la touche "Entr‚e" echo. set /p question= if not defined question goto ini2 if defined question set DIRsource=%question% if not exist "%DIRsource%" goto ini2 goto ini3 :ini3 rem Definition du dossier de sortie if exist "%DIRsortie%" goto ini4 set question= color 71 cls echo /----------------------------------------------------------------------------\ echo I I echo I I echo I *** DOSSIER SORTIE *** I echo I I echo I I echo \----------------------------------------------------------------------------/ echo. echo. echo. echo Ou se trouve le r‚pertoire de sortie des images une fois trait‚es ??? echo. echo SANS le caratŠre "\" … la fin !!! echo. echo. echo. echo. echo. echo. echo. echo Utilisez le clic droit pour "coller" [...] echo Validez en appuyant sur la touche "Entr‚e" echo. set /p question= if not defined question goto ini3 if defined question set DIRsortie=%question% if not exist %DIRsortie% set goto ini3 goto ini4 :ini4 rem Emploi ou non d'un dossier pwg_hight pour la gestion des images en haute definition if defined DIRhightORNOT goto ini41 set DIRhightORNOT= color 71 cls echo /----------------------------------------------------------------------------\ echo I I echo I I echo I *** DOSSIER HD *** I echo I I echo I I echo \----------------------------------------------------------------------------/ echo. echo. echo. echo Voulez-vous utiliser vos photos en haute qualit‚ ? echo Cela cr‚ra un dossier nomm‚ pwg_high echo. echo. echo. echo. echo. echo. echo "Voulez-vous cr‚er ce dossier pwg_high ? [o] - [n]" echo. echo. echo Validez en appuyant sur la touche "Entr‚e" echo. set /p DIRhightORNOT= if not defined %DIRhightORNOT% goto ini4 goto ini41 :ini41 rem Redimensionnement des photos pour les version HD ... if defined DIMhdORNOT goto :ini5 color 8E cls echo /----------------------------------------------------------------------------\ echo I I echo I I echo I *** REDIMENSIONNEMENT HD *** I echo I I echo I I echo \----------------------------------------------------------------------------/ echo. echo. echo. echo Certaines personnes voudrons concerver la taille de leurs clich‚s pour echo un affichage en haute r‚solution. Inconveniant: pas de copyright visuel inclus. echo. echo. echo Vous-vous redimensionner vos photos dans le r‚p‚rtoire pwg_high ? [o] - [n] echo Si vous choisiez oui, le paramŠtre DIMhd sera pris en compte. echo. echo. echo. echo. echo. echo. echo. echo. set /p DIMhdORNOT= if not defined %DIMhdORNOT% goto ini41 goto ini5 :ini5 rem Insertion d'un copyright ? if defined copyORNOT goto ini6 color 17 cls echo /----------------------------------------------------------------------------\ echo I I echo I I echo I *** COPYRIGHT *** I echo I I echo I I echo \----------------------------------------------------------------------------/ echo. echo. echo. echo Voulez-vous ins‚rer un commentaire de type "copyright" sur vos images ? echo Il sera visible sauf sur les vignettes. echo. echo. echo. echo. echo. echo. echo "Voulez-vous INSERER un texte ? [o] - [n]" echo. echo. echo Validez en appuyant sur la touche "Entr‚e" echo. set /p copyORNOT= if "%copyORNOT%" == "o" goto ini51 if "%copyORNOT%" == "n" goto ini6 set copyORNOT= goto ini5 :ini51 rem Modification du copyright ? set question= color 71 cls echo /----------------------------------------------------------------------------\ echo I I echo I I echo I *** COPYRIGHT *** I echo I I echo I I echo \----------------------------------------------------------------------------/ echo. if defined copyright ( echo Le copyright par d‚faut est echo "%copyright%" ) echo. echo Le texte est obligatoirement [...] en bas … gauche, fond gris, texte noir. echo Il est visible sauf sur les vignettes. echo Il est calcul‚ sur la base HD=1280 et Normal=800 echo. echo. echo. if defined copyright ( echo "Voulez-vous CHANGER cette valeur ? [o] - [n]" echo. echo. echo Validez en appuyant sur la touche "Entr‚e" echo. ) if not defined copyright ( pause goto ini511 ) set /p question= if "%question%" == "o" goto ini511 if "%question%" == "n" goto ini6 goto ini51 :ini511 rem Modification du copyright !!! set copyright= color 71 cls echo /----------------------------------------------------------------------------\ echo I I echo I I echo I *** COPYRIGHT *** I echo I I echo I I echo \----------------------------------------------------------------------------/ echo. echo. echo. echo Saisissez l'intitul‚ du nouveau copyright. echo. echo. echo Pour faire pr‚c‚der le symbole "¸" faire la combinaison: Alt + 184 echo. echo. echo. echo. echo. echo. echo Utilisez le clic droit pour "coller" [...] echo Validez en appuyant sur la touche "Entr‚e" echo. set /p copyright= if not defined copyright goto ini511 if "%copyright%" == " " goto ini6 goto ini6 :ini6 rem modification des paramètres ??? if "%paramdefORNOT%" == "o" goto ini7 set question= color 1F cls echo /----------------------------------------------------------------------------\ echo I I echo I I echo I *** PERSONNALISATION *** I echo I I echo I I echo \----------------------------------------------------------------------------/ echo. echo Vous avez la possibilit‚ de modifier certains r‚glages tels que: echo. echo - Les dimensions echo D‚faut: pwg_high------%DIMhd%pixels max echo D‚faut: normal--------%DIMnormal%pixels max echo D‚faut: thumbnail-----%DIMthumbnail%pixels max echo - Les qualit‚s echo D‚faut: pwg_high------%Qhd%/100 de l'original echo D‚faut: normal--------%Qnormal%/100 de l'original echo D‚faut: thumbnail-----%Qthumbnail%/100 de l'original echo - Les DPI (origine). echo - Redimensionner les HD (oui par défaut) echo. echo. echo "Voulez changer ces valeurs ? [o] - [n]" set /p question= if "%question%" == "o" goto ini611 if "%question%" == "n" goto ini7 goto ini6 :ini611 rem La taille des vignettes... set DIMthumbnail= color 8E cls echo /----------------------------------------------------------------------------\ echo I I echo I I echo I *** TAILLE DES VIGNETTES *** I echo I I echo I I echo \----------------------------------------------------------------------------/ echo. echo. echo. echo Quelle dimension (en pixel) maximum pour les VIGNETTES ? echo. echo. echo Sachant que par d‚faut, la valeur doit etre inf‚rieur … 130pixels... echo Au delas, c'est moche !!!! echo. echo. echo. echo. echo. echo. echo. echo. set /p DIMthumbnail= if not defined DIMthumbnail goto ini611 goto ini612 :ini612 rem La taille des vue normales... set DIMnormal= color 8E cls echo /----------------------------------------------------------------------------\ echo I I echo I I echo I *** TAILLE DES APERCUS *** I echo I I echo I I echo \----------------------------------------------------------------------------/ echo. echo. echo. echo Quelle dimension (en pixel) maximum pour les images de taille "normal" ? echo. echo. echo 800 pixels est un bon compromis... echo. echo. echo. echo. echo. echo. echo. echo. echo. set /p DIMnormal= if not defined DIMnormal goto ini612 goto ini613 :ini613 rem La taille des images haute définition... set DIMhd= color 8E cls echo /----------------------------------------------------------------------------\ echo I I echo I I echo I *** TAILLE DES H-DEFINITIONS *** I echo I I echo I I echo \----------------------------------------------------------------------------/ echo. echo. echo. echo Quelle dimension (en pixel) maximum pour les images de "haute d‚finition" ? echo. echo. echo 1280 pixels est bien pour un ‚cran 19"... echo. echo. echo. echo. echo. echo. echo. echo. echo. set /p DIMhd= if not defined DIMhd goto ini613 goto ini621 :ini621 rem La qualité des hautes définitions... set qhd= color 8E cls echo /----------------------------------------------------------------------------\ echo I I echo I I echo I *** QUALITE DES H-DEFINITION *** I echo I I echo I I echo \----------------------------------------------------------------------------/ echo. echo. echo. echo Quelle qualit‚ (en pourcentage par rapport … l'original) voulez vous pour echo vos images "haute d‚finition" ? echo. echo. echo 90% est un trŠs bon choix pour la diffusion sur Internet... echo. echo. echo. echo. echo. echo. echo. echo. set /p Qhd= if not defined Qhd goto ini621 goto ini622 :ini622 rem La qualité des aperçus... set Qnormal= color 8E cls echo /----------------------------------------------------------------------------\ echo I I echo I I echo I *** QUALITE DES APERCUS *** I echo I I echo I I echo \----------------------------------------------------------------------------/ echo. echo. echo. echo Quelle qualit‚ (en pourcentage par rapport … l'original) voulez vous pour echo vos images "normales" ? echo. echo. echo 80% est un trŠs bon choix pour la diffusion sur Internet... echo. echo. echo. echo. echo. echo. echo. echo. set /p Qnormal= if not defined Qnormal goto ini622 goto ini623 :ini623 rem La qualité des vignettes... set Qthumbnail= color 8E cls echo /----------------------------------------------------------------------------\ echo I I echo I I echo I *** QUALITE DES VIGNETTES *** I echo I I echo I I echo \----------------------------------------------------------------------------/ echo. echo. echo. echo Quelle qualit‚ (en pourcentage par rapport … l'original) voulez vous pour echo vos images dites "vignettes" ? echo. echo. echo 70% est un trŠs bon choix pour la diffusion sur Internet... echo. echo. echo. echo. echo. echo. echo. echo. echo. set /p Qthumbnail= if not defined Qthumbnail goto ini623 goto ini6241 :ini6241 rem Résolution des DPI horizontaux... if defined DPIH goto :ini6242 color 8E cls echo /----------------------------------------------------------------------------\ echo I I echo I I echo I *** RESOLUTION DPI HORIZONTAL *** I echo I I echo I I echo \----------------------------------------------------------------------------/ echo. echo. echo. echo Quelle r‚solution de DPI souhaitez-vous en HORIZONTAL ? echo Indiquez un nombre. echo. echo. echo Laissez vide pour conserver les DPI d'origine de vos photos. echo. echo. echo. echo. echo. echo. echo. echo. echo. set /p DPIH= goto ini6242 :ini6242 rem Résolution des DPI verticaux... if defined DPIV goto :ini7 color 8E cls echo /----------------------------------------------------------------------------\ echo I I echo I I echo I *** RESOLUTION DPI VERTICAL *** I echo I I echo I I echo \----------------------------------------------------------------------------/ echo. echo. echo. echo Quelle r‚solution de DPI souhaitez-vous en VERTICAL ? echo Indiquez un nombre. echo. echo. echo Laissez vide pour conserver les DPI d'origine de vos photos. echo. echo. echo. echo. echo. echo. echo. echo. echo. set /p DPIV= goto ini7 :ini7 goto :ini8 :ini8 rem Renomage des fichiers/dossiers source OU une fois sortis. if defined renameORNOT goto :ini9 color 8E cls echo /----------------------------------------------------------------------------\ echo I I echo I I echo I *** Renomage des fichiers/dossiers *** I echo I I echo I I echo \----------------------------------------------------------------------------/ echo. echo. echo. echo Afin de conserver la compatibilit‚ avec de nombreuses applications en plus de echo Piwigo, je vous donne la possibilit‚ de renommer les fichiers/dossiers. echo. echo. echo Voulez-vous renommer vos fichiers originaux ? Dans le cas contraire, ce sera echo vos fichiers/dossiers en sortie qui seront renommés. echo. echo. echo. echo. Voulez-vous renommer vos fichiers/dossiers originaux ? [o] - [n] echo. echo. echo. Validez en appuyant sur la touche "Entr‚e" echo. set /p renameORNOT= if "%renameORNOT%" == "o" goto ini9 if "%renameORNOT%" == "n" goto :end set renameORNOT= goto ini8 :ini9 rem Affichage du chronomètre... if defined FreeWatchORNOT goto :end color 8E cls echo /----------------------------------------------------------------------------\ echo I I echo I I echo I *** QUALITE DES VIGNETTES *** I echo I I echo I I echo \----------------------------------------------------------------------------/ echo. echo. echo. echo Quelle qualit‚ (en pourcentage par rapport … l'original) voulez vous pour echo vos images dites "vignettes" ? echo. echo. echo 70% est un trŠs bon choix pour la diffusion sur Internet... echo. echo. echo. echo. echo. echo. echo. echo. echo. set /p FreeWatchORNOT= if not defined FreeWatchORNOT goto ini9 if "%FreeWatchORNOT%" == "o" goto :end if "%FreeWatchORNOT%" == "n" goto :end goto ini9 :end rem Fin de la section et retours vers la section appelante. set gfini=1 if "%debug%" == "2" ( cls echo Le fichier questions.bat a correctement ‚t‚ lu. echo. echo Je suis encore actuellement dedans... echo. echo Variable gfini=%gfini% pause cls ) goto :eof