Problem with filenames that contain space

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

Moderators: XnTriq, helmut, xnview

herb
Posts: 273
Joined: Sat Jul 18, 2009 3:19 pm

Problem with filenames that contain space

Post by herb »

Hello Pierre,

I work with Nconvert 7.136 on a Windows 10 system.
Similar to the problem with character dot "." in filename ( see viewtopic.php?f=57&t=44696 ) I have problems with images that contain a space character.
But this problem occurs only for specific types - not for all.

(1) The test with a *.pgm file has no errors:
For command

Code: Select all

nconvert.exe -half_res -ignore_errors -thumb 1920 1920 -overwrite -out jpeg -o "baboon ascii" "baboon ascii.pgm"
the result is: Conversion of baboon ascii.pgm into baboon ascii.jpg OK

(2) But the test with a *.psd file has errors:
For command

Code: Select all

nconvert.exe -half_res -ignore_errors -thumb 1920 1920 -overwrite -out jpeg -o "ima ges" "ima ges.psd"
the result is: Error: Can't open file (ima ges.psd)

And for identical file, but filename has no space, the test was ok:
nconvert.exe -half_res -ignore_errors -thumb 1920 1920 -overwrite -out jpeg -o "images" "images.psd"
the result is: Conversion of images.psd into images.jpg OK

Best regards
herb
User avatar
xnview
Author of XnView
Posts: 44885
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Problem with filenames that contain space

Post by xnview »

i'm not able to reproduce with .psd
Pierre.
herb
Posts: 273
Joined: Sat Jul 18, 2009 3:19 pm

Re: Problem with filenames that contain space

Post by herb »

Hello Pierre,

thanks for your investigations.

I repeated the test with a e.g. *.jp2 file and also with other *.psd files.
The problem did not occur.

So it might be a problem with one specific file. I feel free to attach this specific file for further tests.

Thanks in advance
herb
You do not have the required permissions to view the files attached to this post.
User avatar
xnview
Author of XnView
Posts: 44885
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Problem with filenames that contain space

Post by xnview »

crazy, it works here
Pierre.
herb
Posts: 273
Joined: Sat Jul 18, 2009 3:19 pm

Re: Problem with filenames that contain space

Post by herb »

Hello Pierre,

thanks again for your tests.
You say: it is working --- so I did again various test and used various different options.
At the moment - not knowing what to do else - I renamed the file (replaced all characters and digits) and to my surprise it is working also in case of containing a space.
I really do not know what was the special with the filename.

Sorry that I made so much noise.
Best regards
herb