Can I compress a file with image_magick and carrierwave gems?
carrierwave with image_magick (and rmagick for that matter) provides methods such as resize_to_fit, etc.
Is there a method I can call to compress my images by, say,开发者_如何学C 50%?
All you need to know is in the WIKI: https://github.com/jnicklas/carrierwave/wiki/How-to%3A-Specify-the-image-quality
精彩评论