Page 1 of 2

How to save the result image in a sub-folder ?

Posted: Mon Sep 08, 2008 6:17 pm
by boxig
How to save the result image in a sub-folder ?
Should the sub-folder exist already or it is can created while saving file ?
Please give me a sample code.

Thank you

Re: How to save the result image in a sub-folder ?

Posted: Tue Sep 09, 2008 6:29 am
by xnview
boxig wrote:How to save the result image in a sub-folder ?
Should the sub-folder exist already or it is can created while saving file ?
Please give me a sample code.
For example -o sub/output.jpg

Thank you.

Posted: Tue Sep 09, 2008 1:09 pm
by boxig
Thank you.

Re: How to save the result image in a sub-folder ?

Posted: Sat Oct 03, 2009 1:44 pm
by nh2user
How Do I make the output filename use the original filename and add a number to it ?

using # and $ and % doesn't work !

thanks in advance

Re: How to save the result image in a sub-folder ?

Posted: Sat Oct 03, 2009 1:47 pm
by nh2user
xnview wrote:
boxig wrote:How to save the result image in a sub-folder ?
Should the sub-folder exist already or it is can created while saving file ?
Please give me a sample code.
For example -o sub/output.jpg
this is not working :

nconvert.exe -quiet -xall -size 256x256+0 -out jpeg -o sub/output.jpg -q 90 -i -keep_icc -opthuff -dct 2 -smoothingf 0 -subsampling 2 -keepfiledate -keepcspace -buildexifthumb one.jpg

it gives me an error :

can't create file sub/output.jpeg

any tips ?

Re: How to save the result image in a sub-folder ?

Posted: Mon Oct 05, 2009 7:11 am
by xnview
nh2user wrote: can't create file sub/output.jpeg
any tips ?
Do you have created sub folder?

Re: How to save the result image in a sub-folder ?

Posted: Tue Oct 06, 2009 7:42 pm
by nh2user
No, the subfolder is not being created.

tu peux me parler en francais si tu veux.

Re: How to save the result image in a sub-folder ?

Posted: Wed Oct 07, 2009 5:52 am
by xnview
nh2user wrote: tu peux me parler en francais si tu veux.
NConvert ne cree pas les dossiers

Re: How to save the result image in a sub-folder ?

Posted: Wed Oct 07, 2009 10:33 am
by nh2user
xnview wrote:
nh2user wrote: tu peux me parler en francais si tu veux.
NConvert ne cree pas les dossiers
Il ne cre pas les dossiers, mais les ## et les $$ ne marchent pas non plus dans le command

il me met des numero mais ne retranscrit pas le nom du fichier

Re: How to save the result image in a sub-folder ?

Posted: Wed Oct 07, 2009 11:13 am
by xnview
nh2user wrote:il ne cre pas les dossiers, mais les ## et les $$ ne marchent pas non plus dans le command
il me met des numero mais ne retranscrit pas le nom du fichier
comment ça?

Re: How to save the result image in a sub-folder ?

Posted: Wed Oct 07, 2009 11:17 am
by nh2user
nconvert.exe -quiet -xall -size 256x256+0 -out jpeg -q 90 -i -keep_icc -opthuff -dct 2 -smoothingf 0 -subsampling 2 -keepfiledate -keepcspace -buildexifthumb

si je rajoute -o $#

il ne me met pas le nom du fichier.

en fait, je souhaite avoir le nom du fichier original + un chiffre a la fin. Comme ca, il n'ecrit pas sur le fichier original si il est du meme format.

car un resize d'un fichier .jpg vers un autre plus petit. M'ecrase l'ancien avec cette formule

cordialement

Re: How to save the result image in a sub-folder ?

Posted: Wed Oct 07, 2009 11:27 am
by xnview
# n'est utilisé qu'en sequence avec -n

Re: How to save the result image in a sub-folder ?

Posted: Wed Oct 07, 2009 2:25 pm
by nh2user
Vous pouvez me donner la ligne de commande svp ? pour avoir un fichier d'export pour avoir le meme nom que le fichier original avec en plus un chiffre au bout, chiffre a 4 numeros.

merci

a quoi sert le -o alors ?

Re: How to save the result image in a sub-folder ?

Posted: Wed Oct 07, 2009 3:43 pm
by xnview
Il n'y a pas de possibilité. # n'est utilisé qu'avec -n
-o precise le chemin/nom de sortie

Re: How to save the result image in a sub-folder ?

Posted: Wed Oct 07, 2009 3:51 pm
by nh2user
un exemple de -n ?

cordialement