Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Tree: a4823da671

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.


Inspired entirely by @jasonnoble, this Rack middleware recreates the upside-down-ternet described in

Fun Stuff

Works just like any other middleware. Bonus: set your own image transformations!

# environment.rb
require 'rack_upside_down_ternet'
config.middleware.use Rack::UpsideDownTernet, '-blur 10'

Broken Stuff

  • Uses curl instead of just grabbing the file out of the images directory
  • Doesn't even kinda work with remote/absolute URL images
  • Requires unicorn (or any multi-worker setup). Make sure you have at least 2 workers running, as your first request will block curl from downloading images
  • Requires that you create PROJECT_DIR/tmp and PROJECT_DIR/images/mod
Something went wrong with that request. Please try again.