skip the damaged file using filecommandlist

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

Moderators: helmut, XnTriq, xnview

Post Reply
User avatar
Cinemaizer
Posts: 23
Joined: Mon Jan 28, 2008 2:22 pm
Location: Russia

skip the damaged file using filecommandlist

Post by Cinemaizer »

Good day!
I like use the "filecommand"-list with nconvert, but there is a trouble - when nconvert trying to convert the corrupted file, other following files don't (!) converted and nconvert just stops (exit). :(

"### -truecolors -sharpen 50 -ratio -thumb 220 190 -out bmp -o ..\thumbs\im_0002.bmp
H:\Arkaim_1\DSC00023.JPG
### -truecolors -sharpen 50 -ratio -thumb 220 190 -out bmp -o ..\thumbs\im_0004.bmp
H:\Arkaim_1\DSC00025.JPG
### -truecolors -sharpen 50 -ratio -thumb 220 190 -out bmp -o ..\thumbs\im_0006.bmp
H:\Arkaim_1\_SC01532.jpg
### -truecolors -sharpen 50 -ratio -thumb 220 190 -out bmp -o ..\thumbs\im_0008.bmp
H:\Arkaim_1\DSC00047.JPG
### -truecolors -sharpen 50 -ratio -thumb 220 190 -out bmp -o ..\thumbs\im_0010.bmp
H:\Arkaim_1\DSC00263.JPG"

Here, _SC01532.jpg file is corrupted, so DSC00023.JPG and DSC00025.JPG are converted fine, but DSC00047.JPG and DSC00263.JPG are not converted. How nconvert could be skip\ignore damaged file and continue to work with following files (list is really big and sometimes there are such 'bad' files) automatically ? Perhaps, a specific key -ignorebad could be help (i guess)?
User avatar
Cinemaizer
Posts: 23
Joined: Mon Jan 28, 2008 2:22 pm
Location: Russia

Re: skip the damaged file using filecommandlist

Post by Cinemaizer »

There is one solution, i know it's working fine:
nconvert.exe -truecolors -sharpen 50 -ratio -thumb 220 190 -out bmp -o ..\thumbs\im_####.bmp -L FILELIST.txt

FILELIST.txt:
"H:\Arkaim_1\DSC00023.JPG
H:\Arkaim_1\DSC00025.JPG
H:\Arkaim_1\_SC01532.jpg
H:\Arkaim_1\DSC00047.JPG
H:\Arkaim_1\DSC00263.JPG"

But in previous case the skipping need too.
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: skip the damaged file using filecommandlist

Post by xnview »

Ok, so the problem is only when you have process in the filelist...
Pierre.
User avatar
Cinemaizer
Posts: 23
Joined: Mon Jan 28, 2008 2:22 pm
Location: Russia

Re: skip the damaged file using filecommandlist

Post by Cinemaizer »

Hi Pierre! Yes, this problem with the filecommandlist. But I need the correct skipping in the first case too. Why is so important? Answer: scripts and automatic processing of the results . In the second case (with filelist), indexing will be such: im_0001.bmp, im_0002.bmp, im_0003.bmp, im_0004.bmp. Since the corrupted file will be ignored, then all true, but! for software processing (external software) folder with the results (ready thumnails), I can not identify exactly which file is missing (i.e. not converted). If it were possible to skip the corrupted file in the first case, it would be possible to determine. In general, I think just be enough to miss it (without any key, I think), but did not terminate nconvert...

In the end, I need to get the folder "thumbs", in which the files will be (im_0006.bmp th will simply not be created):
im_0002.bmp
im_0004.bmp
im_0008.bmp
im_0010.bmp
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: skip the damaged file using filecommandlist

Post by xnview »

Could you send me your email by PM?
Pierre.
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: skip the damaged file using filecommandlist

Post by xnview »

Do you have always the problem with last version?
Pierre.
Post Reply