This requires you to have a few things:
- A Mac
- An iPhone
- A US Cell Phone Number
- Handoff Enabled on Your Mac/iPhone
- A generous text message plan
This script isn't currently doing any resizing. It assumes you're sending an image with the dimenions of 76x25. transparent pixels will be ommitted.
With the required gems installed, you can run this by either making the script an executable, or invoking it through ruby and passing it the path to the image you want to display:
ruby display.rb unicorn.png