Convert colorspace of images attached with Paperclip

Updated . Posted . Visible to the public.
has_attached_file(
  :avatar,
  :styles => { :large => "300x300", :small => "100x100" },
  :convert_options => { all => "-colorspace RGB" }
)
Martin Straub
Last edit
Keywords
attachment, rgb, cmyk, color, colour
License
Source code in this card is licensed under the MIT License.
Posted by Martin Straub to makandra dev (2010-08-25 14:01)