Last change
on this file since 13259 was
6028,
checked in by websigns, 15 years ago
|
première version ce cet utilitaire
|
File size:
1.2 KB
|
Line | |
---|
1 | @echo off |
---|
2 | |
---|
3 | rem -- ici définir les variables : -- |
---|
4 | set Dirnconvert="C:\Program Files\XnView\nconvert.exe" |
---|
5 | set OPT=-opthuff -i -rflag decr -rexifthumb -rtype lanczos -ratio -dct 2 -subsampling 2 -32bits |
---|
6 | set OPT1=-q 80 %OPT% -resize 800 800 |
---|
7 | set OPT2=-q 95 %OPT% -resize 1280 1280 |
---|
8 | set OPT3=-q 70 %OPT% -resize 128 128 -rmeta |
---|
9 | set in=*.* |
---|
10 | set dest=convertis |
---|
11 | |
---|
12 | set i=2 |
---|
13 | if exist %1\nul set i=1 |
---|
14 | if exist %1\* set i=1 |
---|
15 | |
---|
16 | if %i%==1 (cd /d %1) else (cd /d %~dp1) |
---|
17 | |
---|
18 | md %dest% |
---|
19 | md %dest%\thumbnail |
---|
20 | md %dest%\pwg_high |
---|
21 | |
---|
22 | if %i%==1 ( |
---|
23 | echo conversion des fichiers d'un repertoire |
---|
24 | echo 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 ( |
---|
30 | echo conversion d'une selection de fichiers |
---|
31 | echo liste : %* |
---|
32 | |
---|
33 | for %%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 | |
---|
41 | echo ----------------------------------- |
---|
42 | echo operation terminee :) |
---|
43 | dir *.* /s > contenu.txt |
---|
44 | pause>nul |
---|
45 | cls |
---|
Note: See
TracBrowser
for help on using the repository browser.