Creating a montage (resizing images first)

mkdir 640
cp *.JPG 640
cd 640
mogrify -resize 640×480 *
montage * index.png


import os

for root, dirs, files in os.walk(“.”):
for d in dirs:
path = os.path.join(root, d)
os.system(‘montage “‘ + path + ‘”‘)

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *