Friday 11 April 2014

Speed up your ruby-on-rails Application using webp Images

Speed up your Ruby on Rails application using WebP images
What is WebP?
WebP is an image format that employs both lossy and lossless compression. It’s been developed by Google. So far only Google Chrome (+ Android) and Opera support this type of images, as we can show webp images in Chrome and Opera, and png, jpg or gif images in the other browsers.
WebP and Ruby on Rails
After the webp library has been released, I wrote a webp gem – webp-ffi. You can use it to work with webp images in Ruby. Also, two good Ruby gems were released a bit later – sprockets-webp and carrierwave-webp. Sprockets-webp provides a Rails Asset Pipeline hook for converting PNG and JPEG assets to the WebP format. To use it, just add this gem in the Gemfile.
 Call Us – (203) 208 3081
 Write us – sales@panzertechnologies.com


No comments:

Post a Comment