Page 1 of 1

Problem with filenames that contain space

Posted: Tue Jan 31, 2023 4:36 pm
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

Re: Problem with filenames that contain space

Posted: Fri Feb 03, 2023 10:21 am
by xnview
i'm not able to reproduce with .psd

Re: Problem with filenames that contain space

Posted: Fri Feb 03, 2023 11:56 am
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

Re: Problem with filenames that contain space

Posted: Sat Feb 04, 2023 1:14 pm
by xnview
crazy, it works here

Re: Problem with filenames that contain space

Posted: Sat Feb 04, 2023 3:49 pm
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