From f087c23c8600fe197d3a59f4a0cd839754459b37 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Fri, 25 Jan 2013 21:53:05 +0100 Subject: Initial commit. --- config/initializers/refinery/images.rb | 45 ++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 config/initializers/refinery/images.rb (limited to 'config/initializers/refinery/images.rb') diff --git a/config/initializers/refinery/images.rb b/config/initializers/refinery/images.rb new file mode 100644 index 0000000..58c01ff --- /dev/null +++ b/config/initializers/refinery/images.rb @@ -0,0 +1,45 @@ +# encoding: utf-8 +Refinery::Images.configure do |config| + # Configures the maximum allowed upload size (in bytes) for an image + # config.max_image_size = 5242880 + + # Configure how many images per page should be displayed when a dialog is presented that contains images + # config.pages_per_dialog = 18 + + # Configure how many images per page should be displayed when a dialog is presented that + # contains images and image resize options + # config.pages_per_dialog_that_have_size_options = 12 + + # Configure how many images per page should be displayed in the list of images in the admin area + # config.pages_per_admin_index = 20 + + # Configure image sizes + # config.user_image_sizes = {:small=>"110x110>", :medium=>"225x255>", :large=>"450x450>"} + + # Configure white-listed mime types for validation + # config.whitelisted_mime_types = ["image/jpeg", "image/png", "image/gif", "image/tiff"] + + # Configure image view options + # config.image_views = [:grid, :list] + + # Configure default image view + # config.preferred_image_view = :grid + + # Configure S3 (you can also use ENV for this) + # The s3_backend setting by default defers to the core setting for this but can be set just for images. + # config.s3_backend = Refinery::Core.s3_backend + # config.s3_bucket_name = ENV['S3_BUCKET'] + # config.s3_access_key_id = ENV['S3_KEY'] + # config.s3_secret_access_key = ENV['S3_SECRET'] + # config.s3_region = ENV['S3_REGION] + + # Configure Dragonfly + # This is where in the middleware stack to insert the Dragonfly middleware + # config.dragonfly_insert_before = "ActionDispatch::Callbacks" + # config.dragonfly_secret = "d1122d494d5ff96a870d13bcd2ea0b9f2d9bf1fbd0cbc59b" + # If you decide to trust file extensions replace :ext below with :format + # config.dragonfly_url_format = "/system/images/:job/:basename.:ext" + # config.datastore_root_path = "/home/haraldei/src/religionsfrihet.no/public/system/refinery/images" + # config.trust_file_extensions = false + +end -- cgit v1.2.3