I have a folder containing 4 sub-folders, and each sub-folder contains 4 images (for a total of 16 images). I want to combine these 16 images into 1 image.
Example of structure:
0/0.png
0/1.png
...
1/0.png
1/1.png
...
3/3.png
This is how the images are combined into one image:
Each column represents a sub-folder.
I have +30 of these folders, and that's why I want to create a script instead of doing it manually in Photoshop.
I downloaded ImageMagick for Windows and tried to create a batch script that I could run.
I tried this:
cd %cd%
for /r /d %%a in (*.png) do montage -tile 5x4 "result.png"
This doesn't work (no image, nor error in CMD). Please note that I am completely new to both ImageMagick and creating .bat files in Windows.
So, how can modify my script so it goes through all the sub-folders and creates/convert a single montage/tile from all the images in the sub-folders?
magick 0/*.png -append ( 1/*.png -append ) ( 2/*.png -append ) ( 3/*.png -append ) +append result.png
– Mark Setchell@Marck Setchell
. Your code is Unix not Windows. Change your slashes and use magick.exe. Good idea to just use append.magick.exe ( 0\*.png -append ) ( 1\*.png -append ) ( 2\*.png -append ) ( 3\*.png -append ) +append result.png
– fmw42