Skip to content

Commit

Permalink
Tweak colour mode for uploaded images
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmacleod committed May 20, 2013
1 parent c1a4e88 commit bb27da8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/asset.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def get_caption
has_attached_file :asset, :styles => Braincube::Config::ImageFileVersions,
:path => ":id/:id_:style.:extension",
:default_url => "asset_placeholders/:style.png",
:convert_options => { :all => "-strip -colorspace RGB" },
:convert_options => { :all => "-strip -colorspace sRGB" },
:whiny => true,
:storage => :s3,
:s3_credentials => Braincube::Config::S3ConnectionDetails[ Rails.env ],
Expand All @@ -44,7 +44,7 @@ def get_caption
:path => ":rails_root/public/assets/:rails_env/:id/:id_:style.:extension",
:url => "/assets/:rails_env/:id/:id_:style.:extension",
:default_url => "/images/asset_placeholders/:style.png",
:convert_options => { :all => "-strip -colorspace RGB" },
:convert_options => { :all => "-strip -colorspace sRGB" },
:processors => [:cropper], :whiny => true
end

Expand Down

0 comments on commit bb27da8

Please sign in to comment.