Permalink
Browse files

Simplify image validating for MiniMagick

  • Loading branch information...
1 parent 17399e6 commit 8b44eb2990d8fa446997d556a8cf838c752bc566 @dimko dimko committed Feb 17, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/carrierwave/processing/mini_magick.rb
@@ -261,7 +261,7 @@ def manipulate!
image.format(@format.to_s.downcase) if @format
image = yield(image)
image.write(current_path)
- ::MiniMagick::Image.open(current_path)
+ image.run_command("identify", current_path)
rescue ::MiniMagick::Error, ::MiniMagick::Invalid => e
raise CarrierWave::ProcessingError, I18n.translate(:"errors.messages.mini_magick_processing_error", :e => e, :default => I18n.translate(:"errors.messages.mini_magick_processing_error", :e => e, :locale => :en))
end

0 comments on commit 8b44eb2

Please sign in to comment.