NConvert 7.00 - Bug when output filename contains a numeric enumerator

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

Moderators: XnTriq, xnview

Post Reply
cday
XnThusiast
Posts: 1861
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

NConvert 7.00 - Bug when output filename contains a numeric enumerator

Post by cday » Sat Oct 06, 2018 6:36 pm

NConvert 7.00 introduced a bug when the numeric enumerator # is used in an output filename.

In the code below, which outputs renumbered copies of four files in a folder Test:

Expected result: output files numbered 001 002 003 004
Actual result: output files numbered 003 004 005 006

Code: Select all

D:\Desktop\Test>nconvert_7.00  -o ### Test\*.*
** NCONVERT v7.00 (c) 1991-2017 Pierre-E Gougelet (Apr 18 2017/09:49:26) **
        Version for Windows NT/9x/2000/Xp/Vista/7  (All rights reserved)
** This is freeware software (for non-commercial use)

  Error: Can't open file (D:\Desktop\Test\Test)

  Error: Can't open file (D:\Desktop\Test)

Conversion of D:\Desktop\Test\Test\1.png into 003.png OK
Conversion of D:\Desktop\Test\Test\2.png into 004.png OK
Conversion of D:\Desktop\Test\Test\3.png into 005.png OK
Conversion of D:\Desktop\Test\Test\4.png into 006.png OK


NConvert 6.93 outputs the expected result.

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

Re: NConvert 7.00 - Bug when output filename contains a numeric enumerator

Post by xnview » Mon Oct 22, 2018 8:41 am

you have only 4 files in Test folder? I can't reproduce
Pierre.

cday
XnThusiast
Posts: 1861
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: NConvert 7.00 - Bug when output filename contains a numeric enumerator

Post by cday » Mon Oct 22, 2018 4:31 pm

xnview wrote:
Mon Oct 22, 2018 8:41 am
you have only 4 files in Test folder? I can't reproduce
Yes, but with more files the enumeration has the same offset...

The terminal output with NConvert 6.93 is as follows:

Code: Select all

D:\Desktop\Test - Copy>nconvert_6.93  -o ### Test\*.*
** NCONVERT v6.93 (c) 1991-2016 Pierre-E Gougelet (Oct 11 2016/20:18:09) **
        Version for Windows NT/9x/2000/Xp/Vista/7  (All rights reserved)
** This is freeware software (for non-commercial use)

Conversion of Test\1.png into 001.png OK
Conversion of Test\2.png into 002.png OK
Conversion of Test\3.png into 003.png OK
Conversion of Test\4.png into 004.png OK
But with NConvert 7.00 the output is as follows:

Code: Select all

D:\Desktop\Test>nconvert_7.00  -o ### Test\*.*
** NCONVERT v7.00 (c) 1991-2017 Pierre-E Gougelet (Apr 18 2017/09:49:26) **
        Version for Windows NT/9x/2000/Xp/Vista/7  (All rights reserved)
** This is freeware software (for non-commercial use)

  Error: Can't open file (D:\Desktop\Test\Test)

  Error: Can't open file (D:\Desktop\Test)

Conversion of D:\Desktop\Test\Test\1.png into 003.png OK
Conversion of D:\Desktop\Test\Test\2.png into 004.png OK
Conversion of D:\Desktop\Test\Test\3.png into 005.png OK
Conversion of D:\Desktop\Test\Test\4.png into 006.png OK
From the terminal output, it seems that NConvert 7.00 is trying to open folders that it shouldn't be opening, and incrementing the enumeration index once for each.

Something changed between 6.93 and 7.00...

I'll email you a ZIP containing my test setup as it is just too large to attach, please confirm safe arrival in case of an email security issue. :D

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

Re: NConvert 7.00 - Bug when output filename contains a numeric enumerator

Post by xnview » Tue Oct 23, 2018 3:09 pm

will be fixed
Pierre.

Post Reply