Converting using .xbs file

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

Moderators: helmut, XnTriq, xnview

mfeske
Posts: 42
Joined: Fri May 15, 2009 10:00 am

Converting using .xbs file

Post by mfeske »

Hello everybody,
i have make xbs files with xnview.
Can I use this 123.xbs to convert with nconvert?

What must I write to convert all pictures in d:\test ?

What must I write to convert all pictures in d:\test an all other folders under d:\test?

Greetings
Micha
User avatar
xnview
Author of XnView
Posts: 46362
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: nconvert batch

Post by xnview »

mfeske wrote:Can I use this 123.xbs to convert with nconvert?
Use xnview to load your script and export it as batch script for nconvert
What must I write to convert all pictures in d:\test ?
nconvert ... d:\test\*.*
What must I write to convert all pictures in d:\test an all other folders under d:\test?
Currently not possible directly with nconvert, but you can with a script
Pierre.
mfeske
Posts: 42
Joined: Fri May 15, 2009 10:00 am

Re: nconvert batch

Post by mfeske »

Hello,
thanks for your answer.
I haven´t found the export to batch script, where must I search.?
Where can I found a script to works with nconvert an all folder under d:\test ?


Greetings
xnview wrote:
mfeske wrote:Can I use this 123.xbs to convert with nconvert?
Use xnview to load your script and export it as batch script for nconvert
What must I write to convert all pictures in d:\test ?
nconvert ... d:\test\*.*
What must I write to convert all pictures in d:\test an all other folders under d:\test?
Currently not possible directly with nconvert, but you can with a script
User avatar
xnview
Author of XnView
Posts: 46362
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: nconvert batch

Post by xnview »

mfeske wrote: I haven´t found the export to batch script, where must I search.?
Batch convert/EXport
Pierre.
mfeske
Posts: 42
Joined: Fri May 15, 2009 10:00 am

Re: nconvert batch

Post by mfeske »

Hello Pierre,
thanks for your fast answer. Now I found this Option.

Is this only for the files in the folder where the batch file is inside?
Where can I change this?
What must I do, that it works with folder deeper this one?

Where is my mistake?
I will convert all jpg from f:\vetmed_converter\picture\incoming\ to f:\vetmed_converter\picture\outgoing\ with prefix de and suffix m , but the batch file isn´t work, it shows only the nconvert freeware information.

nconvert.exe -npcd 2 -size 256x256+0 -ctype grey -corder inter -out jpeg -o f:\vetmed_converter\picture\outgoing\de_%_m.jpg -dpi -ratio -rtype lanczos -rflag orient -resize 500 0 -wmfile "F:\vetmed_converter\logo\in_use\de_logo_fu_m.tif" -wmflag bottom-right
Greetings.

Michael
Last edited by mfeske on Mon May 18, 2009 8:36 am, edited 1 time in total.
User avatar
xnview
Author of XnView
Posts: 46362
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: nconvert batch

Post by xnview »

mfeske wrote:Is this only for the files in the folder where the bacth file is inside?
Where can I change this?
add at the end, the list of files. nconvert ..... source/*.jpg
Pierre.
mfeske
Posts: 42
Joined: Fri May 15, 2009 10:00 am

Re: nconvert batch

Post by mfeske »

xnview wrote:
mfeske wrote:Is this only for the files in the folder where the bacth file is inside?
Where can I change this?
add at the end, the list of files. nconvert ..... source/*.jpg
sorry haven´t see your post and i have edit my post.
mfeske
Posts: 42
Joined: Fri May 15, 2009 10:00 am

Re: nconvert batch

Post by mfeske »

sory, i think i ám so stupid :-(
nconvert.exe -npcd 2 -size 256x256+0 -ctype grey -corder inter -out jpeg -o f:\vetmed_converter\picture\outgoing\de_%_m.jpg -dpi -ratio -rtype lanczos -rflag orient -resize 500 0 -wmfile "F:\vetmed_converter\logo\in_use\de_logo_fu_m.tif" -wmflag bottom-right source/*.jpg

isn´t working

in F:\vetmed_converter\logo\in_use\ is my logo file de_logo_fu_m.tif
in F:\vetmed_converter\picture\incoming is my source file for example P1020279.jpg and this time my batch and nconvert to
in f:\vetmed_converter\picture\outgoing\ i will have my target files with prefix de and suffix m
User avatar
xnview
Author of XnView
Posts: 46362
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: nconvert batch

Post by xnview »

So it's

Code: Select all

nconvert.exe -out jpeg -o f:\vetmed_converter\picture\outgoing\de_%_m.jpg -dpi -ratio -rtype lanczos -rflag orient -resize 500 0 -wmfile "F:\vetmed_converter\logo\in_use\de_logo_fu_m.tif" -wmflag bottom-right F:\vetmed_converter\picture\incoming\*.jpg
Pierre.
mfeske
Posts: 42
Joined: Fri May 15, 2009 10:00 am

Re: nconvert batch

Post by mfeske »

xnview wrote:So it's

Code: Select all

nconvert.exe -out jpeg -o f:\vetmed_converter\picture\outgoing\de_%_m.jpg -dpi -ratio -rtype lanczos -rflag orient -resize 500 0 -wmfile "F:\vetmed_converter\logo\in_use\de_logo_fu_m.tif" -wmflag bottom-right F:\vetmed_converter\picture\incoming\*.jpg

Hello Pierre,
sorry but it isn´t working on my computer. Allt times nconvert shows the information screen but isn´t work.

Can I send you testfiles ?
Image
Can this de_%_m.jpg be the Problem?

I have test it with %% than it´s okay, but the konvertierung is not okay. I will resize this picture
Image
to one with and hight automatically. when I use the script in xnview its okay
Image
when i export it to batch isn´t okay :-(
Image
Size not correct, Watermark not correct position must be -5,-5, Watermark alpha not correct must be 70 :-(

My batchline now is:

Code: Select all

nconvert.exe -npcd 2 -size 256x256+0 -ctype grey -corder inter -out jpeg -o G:\vetmed_converter\picture\outgoing\de_%%_m.jpg -dpi -ratio -rtype lanczos -rflag orient -resize 500 0 -wmfile "G:\vetmed_converter\logo\in_use\picture\de_logo_fu_m.tif" -wmflag bottom-right -wmopacity 70 "G:\vetmed_converter\picture\incoming\P1020279.JPG" G:\vetmed_converter\picture\incoming\*.jpg
pause
exit
Please can anybody help me?
Greetings
Michael
User avatar
xnview
Author of XnView
Posts: 46362
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: nconvert batch

Post by xnview »

mfeske wrote: Can I send you testfiles ?
Yes, and the xbs too please
Pierre.
mfeske
Posts: 42
Joined: Fri May 15, 2009 10:00 am

Re: nconvert batch

Post by mfeske »

xnview wrote:
mfeske wrote: Can I send you testfiles ?
Yes, and the xbs too please
Hello Pierre,
where can I send it ?

Greetings Michael
User avatar
xnview
Author of XnView
Posts: 46362
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: nconvert batch

Post by xnview »

mfeske wrote: where can I send it ?
contact at xnview dot com
Pierre.
mfeske
Posts: 42
Joined: Fri May 15, 2009 10:00 am

Re: Converting using .xbs file

Post by mfeske »

you haven´t receive it?
User avatar
xnview
Author of XnView
Posts: 46362
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Converting using .xbs file

Post by xnview »

mfeske wrote:you haven´t receive it?
Oups, sorry i have it :-)
Pierre.
Post Reply