The code in this repository is taken from a blog post written by Tolga Paksoy.
elm make Main.elm Ports.elm --output=elm.js
elm reactor
Go to http://localhost:8000 and click on index.html.
If an image is chosen from the file field, it is displayed on the same page.