Can NConvert create directories?

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

Moderators: XnTriq, xnview

Christian72D
Posts: 17
Joined: Sat Jun 02, 2012 10:00 am

Can NConvert create directories?

Postby Christian72D » Tue Dec 18, 2012 8:30 am

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?

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

Re: Can NConvert create directories?

Postby xnview » Tue Dec 18, 2012 9:30 am

Ok, i'll add it
Pierre.

Christian72D
Posts: 17
Joined: Sat Jun 02, 2012 10:00 am

Re: Can NConvert create directories?

Postby Christian72D » Tue Dec 18, 2012 10:40 am

PERFECT!

Thank you!

Christian72D
Posts: 17
Joined: Sat Jun 02, 2012 10:00 am

Re: Can NConvert create directories?

Postby Christian72D » Tue Dec 18, 2012 1:32 pm

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?

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

Re: Can NConvert create directories?

Postby xnview » Wed Dec 19, 2012 10:29 am

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

Re: Can NConvert create directories?

Postby Christian72D » Wed Dec 19, 2012 1:40 pm

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)

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

Re: Can NConvert create directories?

Postby xnview » Wed Dec 19, 2012 2:19 pm

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

Re: Can NConvert create directories?

Postby Christian72D » Wed Dec 19, 2012 3:40 pm

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

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

Re: Can NConvert create directories?

Postby xnview » Wed Dec 19, 2012 7:23 pm

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

Re: Can NConvert create directories?

Postby Christian72D » Thu Dec 20, 2012 7:36 am

How do YOU create the list?

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

Re: Can NConvert create directories?

Postby xnview » Thu Dec 20, 2012 12:39 pm

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

Re: Can NConvert create directories?

Postby Christian72D » Thu Dec 20, 2012 4:03 pm

Yes, when i let the batch create this list all unicode characters are displayed well.

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

Re: Can NConvert create directories?

Postby xnview » Thu Dec 20, 2012 8:05 pm

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

Re: Can NConvert create directories?

Postby Christian72D » Thu Dec 20, 2012 9:56 pm

My list is in the archiv.

Is it not unicode? But it displays alls non standard characters.

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

Re: Can NConvert create directories?

Postby xnview » Fri Dec 21, 2012 12:56 pm

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.


Return to “NConvert”

Who is online

Users browsing this forum: No registered users and 1 guest