Skip to content

Commit

Permalink
convert colorspace unless gif
Browse files Browse the repository at this point in the history
  • Loading branch information
jimhj committed Apr 8, 2014
1 parent 109e1c7 commit d754b50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dfs_uploader/process.rb
Expand Up @@ -44,7 +44,7 @@ def initialize(file, store_as, opts = {})

tell_smyk = p `identify -format '%[colorspace]' #{@file_path}`

if tell_smyk.include?('CMYK')
if tell_smyk.include?('CMYK') && @ext != "gif"
system "convert -colorspace RGB #{@file_path} #{@file_path}"
@image = MiniMagick::Image.open(@file_path)
end
Expand Down

0 comments on commit d754b50

Please sign in to comment.