Page 1 of 1

Problem with montage `cat files.txt` or montage @files.txt

Posted: 2017-07-08T08:41:47-07:00
by muri
Hello,
i have a not really problem with only one tile by the ImageMagick command "montage".

Thats my command and the error:

Code: Select all

montage `cat files.txt` -mode Concatenate -tile 20x1 big.jpg
montage: unable to open image 'images/0001.jpg': No such file or directory @ error/blob.c/OpenBlob/3093.
Thats the files.txt:

Code: Select all

images/0001.jpg
images/0002.jpg
images/0003.jpg
images/0004.jpg
...
images/0020.jpg
When i use the command without the "0001.jpg", than it's without a problem.
files-b.txt:

Code: Select all

images/0002.jpg
images/0003.jpg
images/0004.jpg
...
images/0020.jpg

Code: Select all

montage `cat files-b.txt` -mode Concatenate -tile 19x1 big-b.jpg
And than this works without problem:

Code: Select all

montage 0001.jpg big-b.jpg -mode Concatenate -tile x1 big-a.jpg
Thats only a hint. My project is finished.

Re: Problem with montage `cat files.txt` or montage @files.txt

Posted: 2017-07-08T09:00:32-07:00
by snibgo
On your other thread, you mention a text file being created on a Windows system. If you saved it in UTF-format, then that's the problem, because you get "junk" bytes (a BOM, byte order mark) at the start of the first line. The cure is not to save as UTF-8, or to strip the BOM.