Skip to content

Commit

Permalink
#get_dimensions a bit modified
Browse files Browse the repository at this point in the history
  • Loading branch information
gzigzigzeo committed Aug 4, 2013
1 parent bcfe09f commit 0598fd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/carrierwave-meta/meta.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,14 @@ def get_dimensions
def processor?(processor, img)
processor = PROCESSORS[processor]
processor_class = processor.constantize rescue nil
defined?(processor_class) && img.is_a?(processor_class)
processor_class.present? && img.is_a?(processor_class)
end

PROCESSORS = {
rmagick: 'Magick::Image',
mini_magick: 'MiniMagick::Image',
socrecy: 'ImageSorcery',
vips: 'Vips::Image'
vips: 'VIPS::Image'
}
end
end

0 comments on commit 0598fd7

Please sign in to comment.