Yes, thatβs pretty easy. Paperclip has an option: convert_options, which can be used for this purpose. It accepts parameters that ImageMagick / Ghostscript can accept.
Here is an example:
class User < ActiveRecord::Base has_attached_file :avatar, :styles => { :thumb => ["100x100>", :jpg] }, :convert_options => { :thumb => "-quality 92" }
Danne mann
source share