# frozen_string_literal: true require 'logger' require 'rubygems' require 'bundler/setup' require 'sinatra' require 'rmagick' require 'rvg/rvg' FORMATS = { 'png' => 'png', 'gif' => 'gif', 'jpg' => 'jpeg' }.freeze LOGGER = Logger.new($stdout) get '/' do <<~HTML
Welcome to fakeimage.
Please see the README (specifically the 'Use' section) at http://github.com/xxx/fakeimage for#{' '} usage info so I don't have a chance to let one of the copies get out of date.
Example:
Code:#{' '}
<img src='http://fakeimage.heroku.com/243x350.gif?color=darkorchid2&textcolor=!B9AF55' />
Something broke. You can try this simple test.#{' '} If this error occurs there as well, you are probably missing app dependencies. Make sure RMagick#{' '} is installed correctly. If the test works, you are probably passing bad params in the url.
Use this thing like http://host:port/200x300, or add color and textcolor params to decide color.
Error is: [#{e}
]