Reputation: 11
I'm trying to make background by tiling same image (sorry, don't know how to write it correctly, here's example ) with MiniMagick
. I saw ImageMagick
command convert -size 1056x576 tile:Castillo_001.gif Castillo_tiled.gif
, but I can't reproduce it in MiniMagick
. Or maybe here's some better solution, if I already have MiniMagick::Image
object? Can you help me, please?
Upvotes: 1
Views: 511
Reputation: 1427
You have to use Minimagick::Tool::Montage
MiniMagick::Tool::Montage.new do |montage|
montage.mode 'concatenate'
11.times do
montage << 'yeah.jpg'
end
# montage.tile '3x3'
montage << 'result.jpg'
end
You have to add the same same image as many times as you need to have it repeated.
If you specify the tile
, then you control the COLxROW
of your result.
If the number of images you send to your montage does not fit in your tile
specification, different resulting images will be generated. You can check this behavior by uncommenting montage.tile
in the example provided.
Upvotes: 1