-
:resize_to - Dimensions to resize to. This should be an ImageMagick geometry string. Fixed sizes are recommended.
-
:thumbnails - A hash of thumbnail names and dimensions. The dimensions should be ImageMagick geometry strings. Fixed sized are recommended.
-
:auto_generate_thumbnails - Flag to indicate whether to automatically generate thumbnails when the image_data changes (e.g. on create). If you set this to false, your application code needs to take care of generating thumbnails, e.g. using #generate_thumbnail
-
:delete - Flag to indicate if the images should be deleted from the storage (e.g. the filesystem) when the record is destroyed.
-
:min_size - Minimum file size allowed. It’s recommended that you set this size in kilobytes.
-
:max_size - Maximum file size allowed. It’s recommended that you set this size in megabytes.
-
:base_path - Where to install the images.
-
:path_prefix - Where to install the images, relative to basepath.
-
:convert_to - An ImageMagick format to convert images to.
-
:output_quality - Image output quality passed to ImageMagick.
-
:invalid_image_message - The message that will be shown when the image data can’t be processed.
-
:image_too_small_message - The message that will be shown when the image file is too small. You should ideally set this to something that tells the user what the minimum is.
-
:image_too_big_message - The message that will be shown when the image file is too big. You should ideally set this to something that tells the user what the maximum is.