Page 1 of 1
Dynamic File list input to concatenate
Posted: 2013-08-21T00:20:21-07:00
by foruforewer
Hi Friends,
I have hundreds of sets of images (folders that contains images) and each have some image files but not at fixed count. I want to concatenate and make a rill per set in which I am not able to get how to make input file counts as dynamic.
Command would look like below
Code: Select all
montage FOLDER1\IMAGE_1.JPG FOLDER1\IMAGE_2.JPG FOLDER1\IMAGE_3.JPG..... -mode concatenate -tile 1x output.jpg
I can get list of each folder with dir /B>list.txt but than on next i dont know how to pass this list to image magick
Re: Dynamic File list input to concatenate
Posted: 2013-08-21T09:55:31-07:00
by fmw42
You should be able to one of the following:
1) put your list into a variable and call the variable inside the montage command in place of the images
montage yourvariable ....
2) put your list into a text file and read the text file into montage in one of the following ways (depending upon whether montage accepts the file symbol @)
montage @filelist.txt ....
or
convert @filelist.txt miff:- | montage - .......
or
convert @filellist.txt image.miff
montate image.miff ....
For windows variables, see
http://www.imagemagick.org/Usage/windows/
Re: Dynamic File list input to concatenate
Posted: 2013-08-22T06:04:28-07:00
by foruforewer
Thanks, @list.txt worked for me
Re: Dynamic File list input to concatenate
Posted: 2013-08-22T06:14:28-07:00
by foruforewer
one error noticed as below
Can i handle image with more than 65500 pixels???
montage @list.txt -mode Concatenate -tile 1x D:\47530313_TILE.jpg
Magick: Maximum supported image dimension is 65500 pixels `D:\47530313_TILE.jpg' @ error/jpeg.c/EmitMessage/235.
Re: Dynamic File list input to concatenate
Posted: 2013-08-22T06:24:54-07:00
by magick
Can i handle image with more than 65500 pixels???
ImageMagick can handle tera-pixels, however, the JPEG image format is limited to 65535x65535 pixels. Try using another pixel format such as PNG which supports larger image sizes.
Re: Dynamic File list input to concatenate
Posted: 2013-09-04T23:18:53-07:00
by foruforewer
Can you please guide me for below.
Put your list into a variable and call the variable inside the montage command in place of the images.
@List.txt has stopped working as it contains full network path as below and montage is not working if full network path is there.
Code: Select all
\\networkpath\folder\file_001.jpg
\\networkpath\folder\file_002.jpg
.
.
.
.
\\networkpath\folder\file_200.jpg