source: extensions/Batch_Optimisateur/composants/questions.bat @ 6061

Last change on this file since 6061 was 6058, checked in by Gotcha, 14 years ago

Version v5.0.a ready for testing !

File size: 20.0 KB
Line 
1:ini1
2set gfini=
3
4:ini2
5rem Definition du dossier source
6if exist "%DIRsource%" goto ini3
7set question=
8color 71
9cls
10echo  /----------------------------------------------------------------------------\
11echo  I                                                                            I
12echo  I                                                                            I
13echo  I                         *** DOSSIER SOURCE ***                             I
14echo  I                                                                            I
15echo  I                                                                            I
16echo  \----------------------------------------------------------------------------/
17echo.
18echo.
19echo.
20echo Ou se trouve le r‚pertoire des images sources … traiter ???
21echo.
22echo SANS le caratŠre "\" … la fin !!!
23echo.
24echo.
25echo.
26echo.
27echo.
28echo.
29echo.
30echo Utilisez le clic droit pour "coller" [...]
31echo Validez en appuyant sur la touche "Entr‚e"
32echo.
33set /p question=
34if not defined question goto ini2
35if defined question set DIRsource=%question%
36if not exist "%DIRsource%" goto ini2
37goto ini3
38
39:ini3
40rem Definition du dossier de sortie
41if exist "%DIRsortie%" goto ini4
42set question=
43color 71
44cls
45echo  /----------------------------------------------------------------------------\
46echo  I                                                                            I
47echo  I                                                                            I
48echo  I                         *** DOSSIER SORTIE ***                             I
49echo  I                                                                            I
50echo  I                                                                            I
51echo  \----------------------------------------------------------------------------/
52echo.
53echo.
54echo.
55echo Ou se trouve le r‚pertoire de sortie des images une fois trait‚es ???
56echo.
57echo SANS le caratŠre "\" … la fin !!!
58echo.
59echo.
60echo.
61echo.
62echo.
63echo.
64echo.
65echo Utilisez le clic droit pour "coller" [...]
66echo Validez en appuyant sur la touche "Entr‚e"
67echo.
68set /p question=
69if not defined question goto ini3
70if defined question set DIRsortie=%question%
71if not exist %DIRsortie% set goto ini3
72goto ini4
73
74:ini4
75rem Emploi ou non d'un dossier pwg_hight pour la gestion des images en haute definition
76if defined DIRhightORNOT goto ini41
77set DIRhightORNOT=
78color 71
79cls
80echo  /----------------------------------------------------------------------------\
81echo  I                                                                            I
82echo  I                                                                            I
83echo  I                           *** DOSSIER HD ***                               I
84echo  I                                                                            I
85echo  I                                                                            I
86echo  \----------------------------------------------------------------------------/
87echo.
88echo.
89echo.
90echo Voulez-vous utiliser vos photos en haute qualit‚ ?
91echo Cela cr‚ra un dossier nomm‚ pwg_high
92echo.
93echo.
94echo.
95echo.
96echo.
97echo.
98echo "Voulez-vous cr‚er ce dossier pwg_high ? [o] - [n]"
99echo.
100echo.
101echo Validez en appuyant sur la touche "Entr‚e"
102echo.
103set /p DIRhightORNOT=
104if not defined %DIRhightORNOT% goto ini4
105goto ini41
106
107:ini41
108rem Redimensionnement des photos pour les version HD ...
109if defined DIMhdORNOT goto :ini5
110color 8E
111cls
112echo  /----------------------------------------------------------------------------\
113echo  I                                                                            I
114echo  I                                                                            I
115echo  I                         *** REDIMENSIONNEMENT HD ***                       I
116echo  I                                                                            I
117echo  I                                                                            I
118echo  \----------------------------------------------------------------------------/
119echo.
120echo.
121echo.
122echo Certaines personnes voudrons concerver la taille de leurs clich‚s pour
123echo un affichage en haute r‚solution. Inconveniant: pas de copyright visuel inclus.
124echo.
125echo.
126echo Vous-vous redimensionner vos photos dans le r‚p‚rtoire pwg_high ? [o] - [n]
127echo Si vous choisiez oui, le paramŠtre DIMhd sera pris en compte.
128echo.
129echo.
130echo.
131echo.
132echo.
133echo.
134echo.
135echo.
136set /p DIMhdORNOT=
137if not defined %DIMhdORNOT% goto ini41
138goto ini5
139
140:ini5
141rem Insertion d'un copyright ?
142if defined copyORNOT goto ini6
143color 17
144cls
145echo  /----------------------------------------------------------------------------\
146echo  I                                                                            I
147echo  I                                                                            I
148echo  I                              *** COPYRIGHT ***                             I
149echo  I                                                                            I
150echo  I                                                                            I
151echo  \----------------------------------------------------------------------------/
152echo.
153echo.
154echo.
155echo Voulez-vous ins‚rer un commentaire de type "copyright" sur vos images ?
156echo Il sera visible sauf sur les vignettes.
157echo.
158echo.
159echo.
160echo.
161echo.
162echo.
163echo "Voulez-vous INSERER un texte ? [o] - [n]"
164echo.
165echo.
166echo Validez en appuyant sur la touche "Entr‚e"
167echo.
168set /p copyORNOT=
169if "%copyORNOT%" == "o" goto ini51
170if "%copyORNOT%" == "n" goto ini6
171set copyORNOT=
172goto ini5
173
174:ini51
175rem Modification du copyright ?
176set question=
177color 71
178cls
179echo  /----------------------------------------------------------------------------\
180echo  I                                                                            I
181echo  I                                                                            I
182echo  I                              *** COPYRIGHT ***                             I
183echo  I                                                                            I
184echo  I                                                                            I
185echo  \----------------------------------------------------------------------------/
186echo.
187if defined copyright (
188                          echo Le copyright par d‚faut est
189                          echo                                   "%copyright%"
190                      )
191
192echo.
193echo Le texte est obligatoirement [...] en bas … gauche, fond gris, texte noir.
194echo Il est visible sauf sur les vignettes.
195echo Il est calcul‚ sur la base HD=1280 et Normal=800
196echo.
197echo.
198echo.
199if defined copyright (
200                                          echo "Voulez-vous CHANGER cette valeur ? [o] - [n]"
201                                          echo.
202                                          echo.
203                                          echo Validez en appuyant sur la touche "Entr‚e"
204                                          echo.
205                                          )
206if not defined copyright (
207                                                  pause
208                                                  goto ini511
209                                                  )
210set /p question=
211if "%question%" == "o" goto ini511
212if "%question%" == "n" goto ini6
213goto ini51
214
215:ini511
216rem Modification du copyright !!!
217set copyright=
218color 71
219cls
220echo  /----------------------------------------------------------------------------\
221echo  I                                                                            I
222echo  I                                                                            I
223echo  I                              *** COPYRIGHT ***                             I
224echo  I                                                                            I
225echo  I                                                                            I
226echo  \----------------------------------------------------------------------------/
227echo.
228echo.
229echo.
230echo Saisissez l'intitul‚ du nouveau copyright.
231echo.
232echo.                           
233echo Pour faire pr‚c‚der le symbole "¸" faire la combinaison: Alt + 184
234echo.
235echo.
236echo.
237echo.
238echo.
239echo.
240echo Utilisez le clic droit pour "coller" [...]
241echo Validez en appuyant sur la touche "Entr‚e"
242echo.
243set /p copyright=
244if not defined copyright goto ini511
245if "%copyright%" == " " goto ini6
246goto ini6
247
248:ini6
249rem modification des paramètres ???
250if "%paramdefORNOT%" == "o" goto ini7
251set question=
252color 1F
253cls
254echo  /----------------------------------------------------------------------------\
255echo  I                                                                            I
256echo  I                                                                            I
257echo  I                          *** PERSONNALISATION ***                          I
258echo  I                                                                            I
259echo  I                                                                            I
260echo  \----------------------------------------------------------------------------/
261echo.
262echo Vous avez la possibilit‚ de modifier certains r‚glages tels que:
263echo.
264echo - Les dimensions
265echo    D‚faut: pwg_high------%DIMhd%pixels max
266echo    D‚faut: normal--------%DIMnormal%pixels max
267echo    D‚faut: thumbnail-----%DIMthumbnail%pixels max
268echo - Les qualit‚s
269echo    D‚faut: pwg_high------%Qhd%/100 de l'original
270echo    D‚faut: normal--------%Qnormal%/100 de l'original
271echo    D‚faut: thumbnail-----%Qthumbnail%/100 de l'original
272echo - Les DPI (origine).
273echo - Redimensionner les HD (oui par défaut)
274echo.
275echo.
276echo "Voulez changer ces valeurs ? [o] - [n]"
277set /p question=
278if "%question%" == "o" goto ini611
279if "%question%" == "n" goto ini7
280goto ini6
281
282:ini611
283rem La taille des vignettes...
284set DIMthumbnail=
285color 8E
286cls
287echo  /----------------------------------------------------------------------------\
288echo  I                                                                            I
289echo  I                                                                            I
290echo  I                        *** TAILLE DES VIGNETTES ***                        I
291echo  I                                                                            I
292echo  I                                                                            I
293echo  \----------------------------------------------------------------------------/
294echo.
295echo.
296echo.
297echo Quelle dimension (en pixel) maximum pour les VIGNETTES ?
298echo.
299echo.
300echo Sachant que par d‚faut, la valeur doit etre inf‚rieur … 130pixels...
301echo Au delas, c'est moche !!!!
302echo.
303echo.
304echo.
305echo.
306echo.
307echo.
308echo.
309echo.
310set /p DIMthumbnail=
311if not defined DIMthumbnail goto ini611
312goto ini612
313
314:ini612
315rem La taille des vue normales...
316set DIMnormal=
317color 8E
318cls
319echo  /----------------------------------------------------------------------------\
320echo  I                                                                            I
321echo  I                                                                            I
322echo  I                         *** TAILLE DES APERCUS ***                         I
323echo  I                                                                            I
324echo  I                                                                            I
325echo  \----------------------------------------------------------------------------/
326echo.
327echo.
328echo.
329echo Quelle dimension (en pixel) maximum pour les images de taille "normal" ?
330echo.
331echo.
332echo 800 pixels est un bon compromis...
333echo.
334echo.
335echo.
336echo.
337echo.
338echo.
339echo.
340echo.
341echo.
342set /p DIMnormal=
343if not defined DIMnormal goto ini612
344goto ini613
345
346:ini613
347rem La taille des images haute définition...
348set DIMhd=
349color 8E
350cls
351echo  /----------------------------------------------------------------------------\
352echo  I                                                                            I
353echo  I                                                                            I
354echo  I                      *** TAILLE DES H-DEFINITIONS ***                      I
355echo  I                                                                            I
356echo  I                                                                            I
357echo  \----------------------------------------------------------------------------/
358echo.
359echo.
360echo.
361echo Quelle dimension (en pixel) maximum pour les images de "haute d‚finition" ?
362echo.
363echo.
364echo 1280 pixels est bien pour un ‚cran 19"...
365echo.
366echo.
367echo.
368echo.
369echo.
370echo.
371echo.
372echo.
373echo.
374set /p DIMhd=
375if not defined DIMhd goto ini613
376goto ini621
377
378:ini621
379rem La qualité des hautes définitions...
380set qhd=
381color 8E
382cls
383echo  /----------------------------------------------------------------------------\
384echo  I                                                                            I
385echo  I                                                                            I
386echo  I                      *** QUALITE DES H-DEFINITION ***                      I
387echo  I                                                                            I
388echo  I                                                                            I
389echo  \----------------------------------------------------------------------------/
390echo.
391echo.
392echo.
393echo Quelle qualit‚ (en pourcentage par rapport … l'original) voulez vous pour
394echo vos images "haute d‚finition" ?
395echo.
396echo.
397echo 90% est un trŠs bon choix pour la diffusion sur Internet...
398echo.
399echo.
400echo.
401echo.
402echo.
403echo.
404echo.
405echo.
406set /p Qhd=
407if not defined Qhd goto ini621
408goto ini622
409
410:ini622
411rem La qualité des aperçus...
412set Qnormal=
413color 8E
414cls
415echo  /----------------------------------------------------------------------------\
416echo  I                                                                            I
417echo  I                                                                            I
418echo  I                         *** QUALITE DES APERCUS ***                        I
419echo  I                                                                            I
420echo  I                                                                            I
421echo  \----------------------------------------------------------------------------/
422echo.
423echo.
424echo.
425echo Quelle qualit‚ (en pourcentage par rapport … l'original) voulez vous pour
426echo vos images "normales" ?
427echo.
428echo.
429echo 80% est un trŠs bon choix pour la diffusion sur Internet...
430echo.
431echo.
432echo.
433echo.
434echo.
435echo.
436echo.
437echo.
438set /p Qnormal=
439if not defined Qnormal goto ini622
440goto ini623
441
442:ini623
443rem La qualité des vignettes...
444set Qthumbnail=
445color 8E
446cls
447echo  /----------------------------------------------------------------------------\
448echo  I                                                                            I
449echo  I                                                                            I
450echo  I                        *** QUALITE DES VIGNETTES ***                       I
451echo  I                                                                            I
452echo  I                                                                            I
453echo  \----------------------------------------------------------------------------/
454echo.
455echo.
456echo.
457echo Quelle qualit‚ (en pourcentage par rapport … l'original) voulez vous pour
458echo vos images dites "vignettes" ?
459echo.
460echo.
461echo 70% est un trŠs bon choix pour la diffusion sur Internet...
462echo.
463echo.
464echo.
465echo.
466echo.
467echo.
468echo.
469echo.
470echo.
471set /p Qthumbnail=
472if not defined Qthumbnail goto ini623
473goto ini6241
474
475:ini6241
476rem Résolution des DPI horizontaux...
477if defined DPIH goto :ini6242
478color 8E
479cls
480echo  /----------------------------------------------------------------------------\
481echo  I                                                                            I
482echo  I                                                                            I
483echo  I                      *** RESOLUTION DPI HORIZONTAL ***                     I
484echo  I                                                                            I
485echo  I                                                                            I
486echo  \----------------------------------------------------------------------------/
487echo.
488echo.
489echo.
490echo Quelle r‚solution de DPI souhaitez-vous en HORIZONTAL ?
491echo Indiquez un nombre.
492echo.
493echo.
494echo Laissez vide pour conserver les DPI d'origine de vos photos.
495echo.
496echo.
497echo.
498echo.
499echo.
500echo.
501echo.
502echo.
503echo.
504set /p DPIH=
505goto ini6242
506
507:ini6242
508rem Résolution des DPI verticaux...
509if defined DPIV goto :ini7
510color 8E
511cls
512echo  /----------------------------------------------------------------------------\
513echo  I                                                                            I
514echo  I                                                                            I
515echo  I                       *** RESOLUTION DPI VERTICAL ***                      I
516echo  I                                                                            I
517echo  I                                                                            I
518echo  \----------------------------------------------------------------------------/
519echo.
520echo.
521echo.
522echo Quelle r‚solution de DPI souhaitez-vous en VERTICAL ?
523echo Indiquez un nombre.
524echo.
525echo.
526echo Laissez vide pour conserver les DPI d'origine de vos photos.
527echo.
528echo.
529echo.
530echo.
531echo.
532echo.
533echo.
534echo.
535echo.
536set /p DPIV=
537goto ini7
538
539:ini7
540goto :ini8
541
542:ini8
543rem Renomage des fichiers/dossiers source OU une fois sortis.
544if defined renameORNOT goto :ini9
545color 8E
546cls
547echo  /----------------------------------------------------------------------------\
548echo  I                                                                            I
549echo  I                                                                            I
550echo  I                   *** Renomage des fichiers/dossiers ***                   I
551echo  I                                                                            I
552echo  I                                                                            I
553echo  \----------------------------------------------------------------------------/
554echo.
555echo.
556echo.
557echo Afin de conserver la compatibilit‚ avec de nombreuses applications en plus de
558echo Piwigo, je vous donne la possibilit‚ de renommer les fichiers/dossiers.
559echo.
560echo.
561echo Voulez-vous renommer vos fichiers originaux ? Dans le cas contraire, ce sera
562echo vos fichiers/dossiers en sortie qui seront renommés.
563echo.
564echo.
565echo.
566echo. Voulez-vous renommer vos fichiers/dossiers originaux ? [o] - [n]
567echo.
568echo.
569echo. Validez en appuyant sur la touche "Entr‚e"
570echo.
571set /p renameORNOT=
572if "%renameORNOT%" == "o" goto ini9
573if "%renameORNOT%" == "n" goto :end
574set renameORNOT=
575goto ini8
576
577:ini9
578rem Affichage du chronomètre...
579if defined FreeWatchORNOT goto :end
580color 8E
581cls
582echo  /----------------------------------------------------------------------------\
583echo  I                                                                            I
584echo  I                                                                            I
585echo  I                        *** QUALITE DES VIGNETTES ***                       I
586echo  I                                                                            I
587echo  I                                                                            I
588echo  \----------------------------------------------------------------------------/
589echo.
590echo.
591echo.
592echo Quelle qualit‚ (en pourcentage par rapport … l'original) voulez vous pour
593echo vos images dites "vignettes" ?
594echo.
595echo.
596echo 70% est un trŠs bon choix pour la diffusion sur Internet...
597echo.
598echo.
599echo.
600echo.
601echo.
602echo.
603echo.
604echo.
605echo.
606set /p FreeWatchORNOT=
607if not defined FreeWatchORNOT goto ini9
608if "%FreeWatchORNOT%" == "o" goto :end
609if "%FreeWatchORNOT%" == "n" goto :end
610goto ini9
611
612:end
613rem Fin de la section et retours vers la section appelante.
614set gfini=1
615if "%debug%" == "2" (
616  cls
617  echo Le fichier questions.bat a correctement ‚t‚ lu.
618  echo.
619  echo Je suis encore actuellement dedans...
620  echo.
621  echo Variable gfini=%gfini%
622  pause
623  cls
624)
625goto :eof
Note: See TracBrowser for help on using the repository browser.