Rails demo app that resizes image files smaller before uploading.
The core idea is that it scales down images before upload to the server, using HTML canvas.
You need Docker. Otherwise you need MySQL that host is named
$ git clone firstname.lastname@example.org:ginpei/rails-resize-image-uploader-demo.git $ cd rails-resize-image-uploader-demo $ docker-compose up
Ctrl+C to stop Docker container.)
For the first time, you have to set DB up as you know. While the above Docker container is running, execute this in another console.
$ docker-compose run app rake db:setup
OK then everything is ready now. Open the app in your browser and try.