Skip to content

Instantly share code, notes, and snippets.

@franciscoj
Created September 6, 2010 10:42
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save franciscoj/566895 to your computer and use it in GitHub Desktop.
Save franciscoj/566895 to your computer and use it in GitHub Desktop.
A way to handle CMYK in your RoR application with paperclip
class User < ActiveRecord::Base
has_attached_file :avatar,
:styles => { :thumbnail => "80x80>", :normalized => "100%" },
:convert_options => { :all => '-strip -colorspace RGB'},
:default_style => :normalized
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment