-
bug dans batch
Bonjour,
j'ai un fichier BATCH avec comme contenu :
magick out.tif -crop 72x74+319+92 +repage ftxt: > cielab.txt
et le contenu de cielab.txt est :
C:\Users\Sylvain ARD\Dropbox\Documents Sylvain\autoentrepreneur\Contrats\Projet couleurs\PROGRAMME\Delphi\Win32\Debug>magick out.tif -crop 72x74+319+92 +repage ftxt:
C:\Users\Sylvain ARD\Dropbox\Documents Sylvain\autoentrepreneur\Contrats\Projet couleurs\PROGRAMME\Delphi\Win32\Debug>magick out.tif -crop 72x74+319+92 +repage ftxt:
C:\Users\Sylvain ARD\Dropbox\Documents Sylvain\autoentrepreneur\Contrats\Projet couleurs\PROGRAMME\Delphi\Win32\Debug>magick out.tif -crop 72x74+319+92 +repage ftxt:
C:\Users\Sylvain ARD\Dropbox\Documents Sylvain\autoentrepreneur\Contrats\Projet couleurs\PROGRAMME\Delphi\Win32\Debug>magick out.tif -crop 72x74+319+92 +repage ftxt:
C:\Users\Sylvain ARD\Dropbox\Documents Sylvain\autoentrepreneur\Contrats\Projet couleurs\PROGRAMME\Delphi\Win32\Debug>magick out.tif -crop 72x74+319+92 +repage ftxt:
C:\Users\Sylvain ARD\Dropbox\Documents Sylvain\autoentrepreneur\Contrats\Projet couleurs\PROGRAMME\Delphi\Win32\Debug>magick out.tif -crop 72x74+319+92 +repage ftxt:
C:\Users\Sylvain ARD\Dropbox\Documents Sylvain\autoentrepreneur\Contrats\Projet couleurs\PROGRAMME\Delphi\Win32\Debug>magick out.tif -crop 72x74+319+92 +repage ftxt:
C:\Users\Sylvain ARD\Dropbox\Documents Sylvain\autoentrepreneur\Contrats\Projet couleurs\PROGRAMME\Delphi\Win32\Debug>magick out.tif -crop 72x74+319+92 +repage ftxt:
C:\Users\Sylvain ARD\Dropbox\Documents Sylvain\autoentrepreneur\Contrats\Projet couleurs\PROGRAMME\Delphi\Win32\Debug>magick out.tif -crop 72x74+319+92 +repage ftxt:
C:\Users\Sylvain ARD\Dropbox\Documents Sylvain\autoentrepreneur\Contrats\Projet couleurs\PROGRAMME\Delphi\Win32\Debug>magick out.tif -crop 72x74+319+92 +repage ftxt:
et ça boucle à l'infini
merci de m'aider !
ça me le fait aussi avec d'autres commandes mais pas toutes
-
Bonjour,
D'après la documentation, tu devrais rajouter le paramètre -debug si tu souhaites créer un log avec certains événements :
https://imagemagick.org/script/comma...ions.php#debug
Tu peux aussi éventuellement utiliser en complément le paramètre -log
-
ça me met tout simplement une suite de lignes avec le -debug en plus
je pense que ça ne vient pas d'imagemagick mais de batch
C:\Users\Sylvain ARD\Dropbox\Documents Sylvain\autoentrepreneur\Contrats\Projet couleurs\PROGRAMME\Delphi\Win32\Debug>magick out.tif -crop 77x69+473+92 +repage ftxt: -debug
C:\Users\Sylvain ARD\Dropbox\Documents Sylvain\autoentrepreneur\Contrats\Projet couleurs\PROGRAMME\Delphi\Win32\Debug>magick out.tif -crop 77x69+473+92 +repage ftxt: -debug
C:\Users\Sylvain ARD\Dropbox\Documents Sylvain\autoentrepreneur\Contrats\Projet couleurs\PROGRAMME\Delphi\Win32\Debug>magick out.tif -crop 77x69+473+92 +repage ftxt: -debug
C:\Users\Sylvain ARD\Dropbox\Documents Sylvain\autoentrepreneur\Contrats\Projet couleurs\PROGRAMME\Delphi\Win32\Debug>magick out.tif -crop 77x69+473+92 +repage ftxt: -debug
C:\Users\Sylvain ARD\Dropbox\Documents Sylvain\autoentrepreneur\Contrats\Projet couleurs\PROGRAMME\Delphi\Win32\Debug>magick out.tif -crop 77x69+473+92 +repage ftxt: -debug
C:\Users\Sylvain ARD\Dropbox\Documents Sylvain\autoentrepreneur\Contrats\Projet couleurs\PROGRAMME\Delphi\Win32\Debug>magick out.tif -crop 77x69+473+92 +repage ftxt: -debug
C:\Users\Sylvain ARD\Dropbox\Documents Sylvain\autoentrepreneur\Contrats\Projet couleurs\PROGRAMME\Delphi\Win32\Debug>magick out.tif -crop 77x69+473+92 +repage ftxt: -debug
C:\Users\Sylvain ARD\Dropbox\Documents Sylvain\autoentrepreneur\Contrats\Projet couleurs\PROGRAMME\Delphi\Win32\Debug>magick out.tif -crop 77x69+473+92 +repage ftxt: -debug
-
ah j'ai trouvé en fait mon batch s'appelait magick.bat donc il se rappelait lui-même en boucle infinie, maintenant que je l'ai renommé ça marche