carrierwave
https://github.com/carrierwaveuploader/carrierwave
Ruby
Classier solution for file uploads for Rails, Sinatra and other Ruby web frameworks
CarrierWave::RMagick#convert
Changes the image encoding format to the given format
See even http://www.imagemagick.org/RMagick/doc/magick.html#formats
=== Parameters
[format (#to_s)] an abreviation of the format
=== Yields
[Magick::Image] additional manipulations to perform
=== Examples
image.convert(:png)Edit
git clone [email protected]:carrierwaveuploader/carrierwave.git
cd carrierwave
open lib/carrierwave/processing/rmagick.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-CarrierWave--RMagick-convert-for-pr
# Commit to gitgit add lib/carrierwave/processing/rmagick.rbgit commit -m "better docs for CarrierWave::RMagick#convert"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-CarrierWave--RMagick-convert-for-pr
hub pull-request
# Celebrate!