RMagick doesn't support smush to align horizontal images at the bottom but MiniMagick does; you need gravity set to `south` to anchor images to the bottom ie. `south`
- From Mastodon: Today I Learned, RMagick doesn’t support
smush
(imagemagick docs for smush, RMagick docs for montage don’t mention smush) to align horizontal images at the bottom but MiniMagick does! Stack Overflow:imagemagick montage - how to align images to bottom - The othe important thing to note is you need to set
gravity
tosouth
to anchor the images at the bottom instead of at the top.
Code
From: create-emoji-question-graphics.rb
require 'mini_magick'
def montage_images_horizontally(image_to_be_appended, image)
MiniMagick::Tool::Magick.new do |m|
m.gravity('south')
m << image
m << image_to_be_appended
m.smush.+(10)
m << image
end
end