[SOLVED] Combining images: How to optimize image placement?
Posted: 2016-08-03T09:01:34-07:00
Hello Everyone!
Many thanks for the ImageMagick!
I'd like to know whether it is possible to combine multiple images of different sizes while optimizing the placement?
Say, there are some colored rectangles which represent images of different size
Now, I want to combine those into one image.
Here is what montage does:
Considering white is a background, is it possible to optimize placement of the colored rectangles?
I.e. one can clearly see that there's enough space to move up both cyan and magenta rectangles.
Then the gray one might go all the way to the right and the black one either to the right or up.
The tricky part is that there might be several large rectangles which will combine with huge "spaces" in-between.
Is there any chance that ImageMagick will search such "holes" and "place" the rectangle currently being added to the image into one of those "holes" if there's enough "room" (i.e. some "hole" is bigger than the current rectangle)?
Many thanks for the ImageMagick!
I'd like to know whether it is possible to combine multiple images of different sizes while optimizing the placement?
Say, there are some colored rectangles which represent images of different size
Now, I want to combine those into one image.
Here is what montage does:
Considering white is a background, is it possible to optimize placement of the colored rectangles?
I.e. one can clearly see that there's enough space to move up both cyan and magenta rectangles.
Then the gray one might go all the way to the right and the black one either to the right or up.
The tricky part is that there might be several large rectangles which will combine with huge "spaces" in-between.
Is there any chance that ImageMagick will search such "holes" and "place" the rectangle currently being added to the image into one of those "holes" if there's enough "room" (i.e. some "hole" is bigger than the current rectangle)?