[solved]script not working anymore with NConvert
Posted: 26 Jul 2020 16:22
Hello, I use this script associate with NConvert to put a random watermark image on an image. It worked nicely until some times. The only difference I see is XYplorer updates. Is there something in XYplorer code I should check. If everything is OK, I will ask on NConvert forum. Thanks for your answers.
When I run this code now, the watermark image is copied in image directory and nothing more.
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";