github.com/iron-io/functions@v0.0.0-20180820112432-d59d7d1c40b2/examples/image_processing/inplace/README.md (about) 1 ## Image processing with Ruby Example 2 3 This example will show you how to process images with a Ruby function. 4 5 ```sh 6 # create your func.yaml file 7 fn init <YOUR_DOCKERHUB_USERNAME>/image-processing 8 9 # build the function 10 fn build 11 12 # test it 13 echo "http://www.sourcecertain.com/img/Example.png" | fn run > image.png 14 15 # push it to Docker Hub 16 fn push 17 18 # Create a route to this function on IronFunctions (assuming you have an app called `test`) 19 fn routes create test /image-processing 20 21 # you can now access via curl as well 22 curl -v -X POST http://localhost:8080/r/test/image-processing -d "http://www.sourcecertain.com/img/Example.png" > image.png 23 ``` 24