Joining images with different sizes
Posted: 2011-02-15T14:19:36-07:00
Hi,
I got several Images that are mostly sized by times of 40. For example 40x40 or 40x80 or 80x200. I want to combine all these images into a single image (to use in a tile editor). However the problem is that there are a few Images that have the wrong size. For example 38x40 or 40x200. Splitting them when they are larger then 40nx40m with n, m beeing natural numbers is no problem. But the images have to be at least 40x40.
Example: If I have these 5 Images (with one letter representing 20x20 pixels):
I want to get the following result:
With spaces also beeing 20x20 pixels.
What I am currently trying:
montage -adjoin -geometry +0+0 -tile 20x -Crop 40x40 ...LONG_LIST_OF_IMAGES... -background none foo.png
(-background none is for keeping the alpha channels of the pictures)
I hope you can help me.
Greetings,
iuiz
I got several Images that are mostly sized by times of 40. For example 40x40 or 40x80 or 80x200. I want to combine all these images into a single image (to use in a tile editor). However the problem is that there are a few Images that have the wrong size. For example 38x40 or 40x200. Splitting them when they are larger then 40nx40m with n, m beeing natural numbers is no problem. But the images have to be at least 40x40.
Example: If I have these 5 Images (with one letter representing 20x20 pixels):
Code: Select all
Img1 Img2 Img3 Img4 Img5
xx b oo yyy ww
xx b oo yyy ww
ww
Code: Select all
xxb ooyyy wwww
xxb ooyyy ww
What I am currently trying:
montage -adjoin -geometry +0+0 -tile 20x -Crop 40x40 ...LONG_LIST_OF_IMAGES... -background none foo.png
(-background none is for keeping the alpha channels of the pictures)
I hope you can help me.
Greetings,
iuiz