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

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
muri
Posts: 15
Joined: 2017-01-17T05:09:01-07:00
Authentication code: 1151

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

Post 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.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

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

Post 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.
snibgo's IM pages: im.snibgo.com
Post Reply