Summary: I need to stitch together several images (and some text) into a single composite image using ruby.
Details: The easiest way to understand this is to follow the attached diagram. Basically I have 3 product images (stored as carrierwave attachments to the Item model in my app), and I need to write a method that stitches them together side-by-side in a row.
Underneath the 3 images is a line of text which needs to be baked into the image, where the username value needs to be dynamic.
And finally underneath that, the company logo.
Basically a user of my Website can generate this widget, and the Website needs to create it and render it based on whatever 3 items the user has already selected (in the example it's a guitar, an amplifier, and an effect pedal). The resulting image should be stored using carrierwave attached to the User model.
My app uses Rails 3.2.21, ruby 2.1.6, carrierwave gem, and rmagick gem. ImageMagick is the image processor.
You can use the montage method of RMagick (https://rmagick.github.io/ilist.html#montage), or do it some other way... whatever is cleaner and performs well.
In terms of the details of stitching the images together, I haven't decided on final padding amounts so you can just do 10px all around the image, and 10px vertically between the product row, text, and company logo.
In my app the images are all stored remotely and on a CDN, so for the 3 images just use something arbitrary like http://images.example.com/uploads/item/image/99/item1.jpg (and then item2.jpg and item3.jpg). For the logo use http://assets.example.com/assets/logo.png. I'm not really sure how font selection works for the line of text. If we can choose a font that's great, otherwise just Helvetica or something similar is fine.