NConvert pour un débutant

Discussions on NConvert - the command line tool for image conversion and manipulation

Moderators: XnTriq, helmut, xnview

Post Reply
oliv30
Posts: 11
Joined: Sun Mar 25, 2018 3:54 pm

NConvert pour un débutant

Post by oliv30 »

bonjour et merci à ce programme
je cherche à transformer les images qui se trouve dans un dossier Input situé sur le bureau vers un dossier try en jpeg

j'obtiens un fichier .bat qui ne marche pas

Code: Select all

nconvert -o $$ \\vmware-host\Shared Folders\Bureau\input jpeg 80-q $$\\vmware-host\Shared Folders\Bureau\try 
cela doit être simple mais dépasse mes compétences.

Merci pour votre aide
Olivier
cday
XnThusiast
Posts: 3985
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: NConvert pour un débutant

Post by cday »

oliv30 wrote: Sun Mar 31, 2019 1:14 pm je cherche à transformer les images qui se trouve dans un dossier Input situé sur le bureau vers un dossier try en jpeg

j'obtiens un fichier .bat qui ne marche pas

Code: Select all

nconvert -o $$ \\vmware-host\Shared Folders\Bureau\input jpeg 80-q $$\\vmware-host\Shared Folders\Bureau\try 

Bonjour, multiple issues, have you created a copy of the NConvert help file?

Please try using the following code as a model to develop:

Code: Select all

nconvert -o c:\x\try\%%.jpg -out jpeg -q 80 "c:\x\input\*.*"
Note that the input term must be the last term, the quotes " " are optional to allow spaces in the input file paths and names.
oliv30
Posts: 11
Joined: Sun Mar 25, 2018 3:54 pm

Re: NConvert pour un débutant

Post by oliv30 »

Thnaks you so much
I have a last stupid question
I can launch nconvert.exe in my command table
but when I launch my script he daesn't find it anymore.

here is the screen that I get

C:\Users\OM> "C:\Program Files\XnView\nconvert.exe"
** NCONVERT v7.25 (c) 1991-2019 Pierre-E Gougelet (Jan 15 2019/12:05:55) **
Version for Windows Xp/Vista/7 x64 (All rights reserved)
** This is freeware software (for non-commercial use)

Usage : nconvert.exe [options ...] file ...
Type nconvert.exe -help, for more information

C:\Users\OM>"\\vmware-host\Shared Folders\Bureau\try\autoconvert.bat"

C:\Users\OM>nconvert -o c:\try\%.jpg -out jpeg -q 80 "c:\input\*.*"
'nconvert' n’est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.
cday
XnThusiast
Posts: 3985
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: NConvert pour un débutant

Post by cday »

oliv30 wrote: Sun Mar 31, 2019 8:08 pm 'nconvert' n’est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.
Yes, that can be a problem:

First, right-click on the nconvert.exe file icon, select Properties, and on the General tab, at the bottom Security, if necessary Unblock the file.

If the problem still exists, first try using the full path to nconvert.exe, for example C:\X\nconvert.exe ...

When NConvert is recognised, note that if C:\Users\OM>nconvert -o c:\try\%.jpg -out jpeg -q 80 "c:\input\*.*" is your batch file .bat, you will need to double % to %% (as in my code) to 'escape' the character in a batch file.
Post Reply