Axon is a library for streaming and manipulating JPEG and PNG images. It scales and crops images along the way. By limiting its functionality, Axon is able to depend on two ubiquitous libraries: libjpeg and libpng. Axon can be installed anywhere those libraries are available. Axon never stores an entire image in memory. All images and operations are streamed from an input to an output. As a result, memory requirements and latency are low.
Gemfile gem 'axon', '~> 0.0.1'
install gem install axon -v 0.0.1