Code: Select all
-n start end step : Begin End Step (for image sequence)
Our forum librarian, who has uncanny search powers
Helmut who was any early NConvert user
Moderators: XnTriq, helmut, xnview
Code: Select all
-n start end step : Begin End Step (for image sequence)
Code: Select all
ou can use it with images sequences.
For example, to convert the files file00.pic, file01.pic, ..., file10.pic and we convert to jpeg format with the name pattern res0.jpg, res1.jpg, ... type :
nconvert -out jpeg -n 1 10 1 -o res#.jpg file##.pic
XnView Wiki ([url=http://www.xnview.com/wiki/index.php/NConvert_User_Guide]NConvert User Guide[/url]) wrote:You can use it with images sequences.
For example, to convert the files file00.pic, file01.pic, ..., file10.pic and we convert to jpeg format with the name pattern res0.jpg, res1.jpg, ... type :Code: Select all
nconvert -out jpeg -n 1 10 1 -o res#.jpg file##.pic
<edit> Chapeau, Monsieur oops66 ! </edit>SS64 (Windows CMD » [url=http://www.ss64.com/nt/for.html]FOR - Looping commands[/url]) wrote:syntax-FOR-List of numbers
FOR /L %%parameter IN (start,step,end) DO command
[Code edited to increase clarity.]oops66 wrote:Hello ... A sample with option -n is into the xnview wiki, did not help?
http://www.xnview.com/wiki/index.php/NC ... User_Guide
[/color]Code: Select all
You can use [NConvert] with images sequences. For example, to convert the files file00.pic, file01.pic, ..., file10.pic and ... to jpeg format with the name pattern res0.jpg, res1.jpg, ... type : nconvert -out jpeg -n 1 10 1 -o res#.jpg file##.pic
As it turns out, this info was transferred from Usage.txt to the Wiki.cday wrote:Thank you, that didn't show up in my searches, and the Wiki's are not a resource I normally think to turn to as they are often very limited or out of date.
nconvert command line option Japanese translation wrote:You read the file with a serial number. Option is to condition such as "-n 1 15", "- n [start number] [end number]" Please enter in the format.
Hello Cday & Xntriq, you're welcome ... yes some others tests are needed too.cday wrote:...Thank you, that didn't show up in my searches, and the Wiki's are not a resource I normally think to turn to as they are often very limited or out of date.
That confirms the use of -n but I think I might have to do some tests to fully understand it...
Code: Select all
-n start end step : Begin End Step (for image sequence)
I've been doing some [limited] tests and -n only seems to work correctly for step=1, depending on what behaviour is expected.http://www.xnview.com/wiki/index.php/NC ... User_Guide[/url]
You can use [NConvert] with images sequences.
For example, to convert the files file00.pic, file01.pic, ..., file10.pic and ... to jpeg format with the name pattern res0.jpg, res1.jpg, ... type :
nconvert -out jpeg -n 1 10 1 -o res#.jpg file##.pic
Code: Select all
nconvert -out png -n 1 20 2 -o Output-##.png test-##.png
Code: Select all
nconvert -out png -n 1 40 2 -o Output-##.png test-##.png
... FYI, same issue uneder Linux version NCONVERT v6.17cday wrote:Please see the edit added at the end of the previous post!
Code: Select all
nconvert -out png -n 1 20 2 -o Output-##.png test-##.png
** NCONVERT v6.17 (c) 1991-2011 Pierre-E Gougelet (Sep 17 2012/10:50:01) **
Version for Linux x86 (X11) (All rights reserved)
** This is a freeware software (for non commercial use)
Conversion of test-01.png into Output-01.png OK
Conversion of test-03.png into Output-03.png OK
Conversion of test-05.png into Output-05.png OK
Conversion of test-07.png into Output-07.png OK
Conversion of test-09.png into Output-09.png OK
Conversion of test-11.png into Output-11.png OK
Conversion of test-13.png into Output-13.png OK
Conversion of test-15.png into Output-15.png OK
Conversion of test-17.png into Output-17.png OK
Conversion of test-19.png into Output-19.png OK
$
nconvert -out png -n 1 40 2 -o Output-##.png test-##.png
Conversion of test-01.png into Output-01.png OK
Conversion of test-03.png into Output-03.png OK
Conversion of test-05.png into Output-05.png OK
Conversion of test-07.png into Output-07.png OK
Conversion of test-09.png into Output-09.png OK
Conversion of test-11.png into Output-11.png OK
Conversion of test-13.png into Output-13.png OK
Conversion of test-15.png into Output-15.png OK
Conversion of test-17.png into Output-17.png OK
Conversion of test-19.png into Output-19.png OK
Conversion of test-21.png into Output-21.png OK
Conversion of test-23.png into Output-23.png OK
Conversion of test-25.png into Output-25.png OK
Error: Can't open file (test-27.png)
Error: Can't open file (test-29.png)
Error: Can't open file (test-31.png)
Error: Can't open file (test-33.png)
Error: Can't open file (test-35.png)
Error: Can't open file (test-37.png)
Error: Can't open file (test-39.png)
Thanks, could you please post an edited version of my command line?xnview wrote:-n replace ## by the range/step specified, in your test it works for step 2
... I think Pierre's saying than the errors are normal, because -n replace ## (but only/mostly for the inputs files)cday wrote:Thanks, could you please post an edited version of my command line?xnview wrote:-n replace ## by the range/step specified, in your test it works for step 2
Well, O.K., but ## appears in two places in the command line...oops66 wrote:I think Pierre's saying than the errors are normal, because -n replace ## (but only/mostly for the inputs files)
... Right, this -n option is not well explained into the help (nconvert -help), and the wiki example is not the good one too.cday wrote:... But perhaps this shines at least a little light on an seemingly little known and probably rarely used NConvert option...