The basic rmagick solution is not so bad, 6 lines. Below is a yellow rectangle with text in the center. You can experiment with font and dot size. The central challenge is there because I thought it looked better in the middle.
require 'RMagick' canvas = Magick::Image.new(300, 100){self.background_color = 'yellow'} gc = Magick::Draw.new gc.pointsize(50) gc.text(30,70, "TEXT".center(14)) gc.draw(canvas) canvas.write('tst.png')
I get a request, you can also go through. This should help.
source share