这是一个例子:
class User < ActiveRecord::Base has_attached_file :avatar,:styles => { :thumb => ["100x100>",:jpg] },:convert_options => { :thumb => "-quality 92" }