When I run this code now, the watermark image is copied in image directory and nothing more.
Code: Select all
foreach($file, "<get SelectedItemsPathNames |>") {
$rand = rand(1,5);
$nomfichier = "G:\img-range\images-perso-xz\essai-cadre-"."$rand".".png";
wait 1000;
runret("""C:\Program Files\nconvert\nconvert.exe""-resize longest 500 -quiet -wmflag center -wmfile"." $nomfichier"." -D -out jpeg -o G:\img-range\images-perso-xz\alternative\%-alter.jpg""");
wait 1000;
}
end confirm ("Allez à Alternative ? !!PENSER à uploader l'image!!") == 0;
goto "G:\img-range\images-perso-xz\alternative";