Discussions on NConvert - the command line tool for image conversion and manipulation
Moderators: XnTriq, helmut, xnview
-
Christian72D
- Posts: 17
- Joined: Sat Jun 02, 2012 10:00 am
Post
by Christian72D »
I found a project someone started with irfanview as a batch tool.
The problem is: Irfanview stops if it finds an unreadable jpeg.
Now i want to make the whole thing with nconvert (i hate Irfanview).
The problem is: with irfanview i can create directories wihile creating jpeg:
Code: Select all
"%iview%" /filelist=%randomNumber%_filelist_xl.txt /resize_long=%sizeL% /aspectratio /convert="$D\SYNOPHOTO%%3ATHUMB_L.jpg" /filepattern="*.jpg" /jpgq=%jpgq% /silent /cmdexit %extraquality%
When i switch it to nconvert it says that its not able to write the file.
Code: Select all
"%iview%" -l %randomNumber%_filelist_original.txt -resize %sizeXL% 0 -q %jpgq% -ratio -o %target%\%randomNumber%\@eaDir\%%\SYNOPHOTO__3ATHUMB_XL.jpg
Did i miss a switch?
-
xnview
- Author of XnView
- Posts: 45337
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Post
by xnview »
Ok, i'll add it
Pierre.
-
Christian72D
- Posts: 17
- Joined: Sat Jun 02, 2012 10:00 am
Post
by Christian72D »
PERFECT!
Thank you!
-
Christian72D
- Posts: 17
- Joined: Sat Jun 02, 2012 10:00 am
Post
by Christian72D »
Looks like there is an other problem: nconvert has the same problem with "non standard"-characters, it can´t read/or write them.
If i have a filename with a german "Umlaut" like "ä ö ü ß" and so on i get an error.
Is THIS also fixable?
-
xnview
- Author of XnView
- Posts: 45337
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Post
by xnview »
yes for unicode character could you try this version (a beta)
http://www.xnview.com/beta/nconvertb.zip
Pierre.
-
Christian72D
- Posts: 17
- Joined: Sat Jun 02, 2012 10:00 am
Post
by Christian72D »
I get the same error:
Code: Select all
Error: Can't open file (d:\_Convert\nconvert\Übersicht Fotos.JPG)
Error: Can't open file (d:\_Convert\nconvert\Übersicht Tracks.JPG)
-
xnview
- Author of XnView
- Posts: 45337
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Post
by xnview »
if you try
Code: Select all
nconvert -info d:\_Convert\nconvert\Übersicht Fotos.JPG
Pierre.
-
Christian72D
- Posts: 17
- Joined: Sat Jun 02, 2012 10:00 am
Post
by Christian72D »
It looks like it can´t find the picture because of the <SPACE>.

When i convert a unicode File by hand it works, from filelist it does not.
I have a little package for you with some files an a little batch, you can download it from my server:
christian72d.mine.nu/temp/nconvert.zip
-
xnview
- Author of XnView
- Posts: 45337
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Post
by xnview »
If i take a look at the liste.txt created by the .bat, the filename are bad
If i create by myself the .txt, nconvert works...
Pierre.
-
Christian72D
- Posts: 17
- Joined: Sat Jun 02, 2012 10:00 am
Post
by Christian72D »
How do YOU create the list?
-
xnview
- Author of XnView
- Posts: 45337
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Post
by xnview »
Christian72D wrote:How do YOU create the list?
by hand... The list is correct for you?
Pierre.
-
Christian72D
- Posts: 17
- Joined: Sat Jun 02, 2012 10:00 am
Post
by Christian72D »
Yes, when i let the batch create this list all unicode characters are displayed well.
-
xnview
- Author of XnView
- Posts: 45337
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Post
by xnview »
Christian72D wrote:Yes, when i let the batch create this list all unicode characters are displayed well.
your list.txt is in unicode? Not me... Could you send me it?
Pierre.
-
Christian72D
- Posts: 17
- Joined: Sat Jun 02, 2012 10:00 am
Post
by Christian72D »
My list is in the archiv.
Is it not unicode? But it displays alls non standard characters.
-
xnview
- Author of XnView
- Posts: 45337
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Post
by xnview »
Christian72D wrote:My list is in the archiv.
On my 7, the liste.txt can not be readed correctly...
Try to save the liste.txt as unicode?
Pierre.