source: extensions/Crearbo_piwigo/crea_arbo_piwigo.bat @ 31994

Last change on this file since 31994 was 6028, checked in by websigns, 14 years ago

première version ce cet utilitaire

File size: 1.2 KB
Line 
1@echo off
2
3rem --   ici définir les variables :   --
4set Dirnconvert="C:\Program Files\XnView\nconvert.exe"
5set OPT=-opthuff -i -rflag decr -rexifthumb -rtype lanczos -ratio -dct 2 -subsampling 2 -32bits
6set OPT1=-q 80 %OPT% -resize 800 800
7set OPT2=-q 95 %OPT% -resize 1280 1280
8set OPT3=-q 70 %OPT% -resize 128 128 -rmeta
9set in=*.*
10set dest=convertis
11
12set i=2
13if exist %1\nul set i=1
14if exist %1\* set i=1
15
16if %i%==1 (cd /d %1) else (cd /d %~dp1)
17
18md %dest%
19md %dest%\thumbnail
20md %dest%\pwg_high
21
22if %i%==1 (
23echo conversion des fichiers d'un repertoire
24echo repertoire : %1
25
26%Dirnconvert% %OPT1% -out jpeg -o %dest%\%%.jpg %in%
27%Dirnconvert% %OPT2% -out jpeg -o %dest%\pwg_high\%%.jpg %in%
28%Dirnconvert% %OPT3% -out jpeg -o %dest%\thumbnail\TN-%%.jpg %in%
29) else (
30echo conversion d'une selection de fichiers
31echo liste : %*
32
33for %%A in (%*) do (
34%Dirnconvert% %OPT1% -out jpeg -o %dest%\%%.jpg %%A
35%Dirnconvert% %OPT2% -out jpeg -o %dest%\pwg_high\%%.jpg %%A
36%Dirnconvert% %OPT3% -out jpeg -o %dest%\thumbnail\TN-%%.jpg %%A
37)
38)
39
40
41echo  -----------------------------------
42echo operation terminee :)
43dir *.* /s > contenu.txt
44pause>nul
45cls
Note: See TracBrowser for help on using the repository browser.