Wrong sequence of files in montage #6900
Replies: 5 comments 4 replies
-
See https://imagemagick.org/script/command-line-options.php#label I suspect your TIFF files already have labels, and when each file is read, that will override your "-label" setting. Use " If that is the problem, then I suggest using Set
|
Beta Was this translation helpful? Give feedback.
-
I don't know what the problem is. Try it without But if the problem still occurs without those options, then try inserting Can you zip your input files and upload the zip file? |
Beta Was this translation helpful? Give feedback.
-
Yes, but not that size. 212 mb is too large for my lousy internet connection. Can you reproduce the problem with just 2 or 3 inputs? Are all your inputs the same size? Another possibility is to read the inputs with one
|
Beta Was this translation helpful? Give feedback.
-
Yes. |
Beta Was this translation helpful? Give feedback.
-
I'm glad the problem is fixed.
No, thanks. |
Beta Was this translation helpful? Give feedback.
-
ImageMagick version
7.0.9-1
Operating system, version and so on
Windows 10
Description
I stumbled upon a rather maddening issue I can't resolve on my own. I am experimenting with montages of files. My autoit script takes files in batches of eight and creates montages in 4x2 arrangements also labelling each one, autoit part here simply acts as a wrapper over IM to make a cmd line I need and runs it. The script looks like this
magick montage $montage_list -tile 4x2 -geometry +10+20 -frame 10 $output_file
where $montage_list is autoit string variable that contains pairs of labels and file-paths to feed IM for montage (8 of them) and looks like this
-label "some label for my file1" "path to my file1" -label "some label for my file2"' "path to my file2"
The problem is output file I get has my files in wrong sequence. The first label-file pair gets shuffled back to eigth place instead of opening the sequence. And this behavior persists even if I change montage arrangement to say 3x2, or 4x or x2 or even discard -tile parameter entirely.
Then to eliminate any influence from autoit I temporarily discarded my wrapper script and simply run the command I need in plain cmd. The result is the same, so it is definitely some quirck in IM behavior. All files have names like 0001.tif, 0002.tif etc. so there can't be any issue with sorting.
What is it then?
P.S. There appears to be some unknown problem with the files themselves because I converted them from tifs to jpegs with the same filenames and the command worked fine while with tifs there was a warning "Unknown field with tag 292 (0x124) encountered. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/1029. Is it possible that some tif metadata is responsible?
Beta Was this translation helpful? Give feedback.
All reactions