Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Documentation for convert_options

  • Loading branch information...
commit 457c0cd516125feab6c5121af28825cba53521d7 1 parent 3b56164
@jyurek jyurek authored
Showing with 11 additions and 1 deletion.
  1. +11 −1 lib/paperclip.rb
12 lib/paperclip.rb
@@ -106,11 +106,21 @@ module ClassMethods
# * +whiny_thumbnails+: Will raise an error if Paperclip cannot process thumbnails of an
# uploaded image. This will ovrride the global setting for this attachment.
# Defaults to true.
- # * +thumbnail_convert_options+: When creating thumbnails, use this free-form options
+ # * +convert_options+: When creating thumbnails, use this free-form options
# field to pass in various convert command options. Typical options are "-strip" to
# remove all Exif data from the image (save space for thumbnails and avatars) or
# "-depth 8" to specify the bit depth of the resulting conversion. See ImageMagick
# convert documentation for more options: (
+ # Note that this option takes a hash of options, each of which correspond to the style
+ # of thumbnail being generated. You can also specify :all as a key, which will apply
+ # to all of the thumbnails being generated. If you specify options for the :original,
+ # it would be best if you did not specify destructive options, as the intent of keeping
+ # the original around is to regenerate all the thumbnails then requirements change.
+ # has_attached_file :avatar, :styles => { :large => "300x300", :negative => "100x100" }
+ # :convert_options => {
+ # :all => "-strip",
+ # :negative => "-negate"
+ # }
# * +storage+: Chooses the storage backend where the files will be stored. The current
# choices are :filesystem and :s3. The default is :filesystem. Make sure you read the
# documentation for Paperclip::Storage::Filesystem and Paperclip::Storage::S3
Please sign in to comment.
Something went wrong with that request. Please try again.