Skip to content
This repository has been archived by the owner on Apr 14, 2018. It is now read-only.

Commit

Permalink
don't error if ImageSize gem raises an error
Browse files Browse the repository at this point in the history
  • Loading branch information
phallstrom committed Sep 23, 2013
1 parent 49ecc89 commit 0e3b06f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/el_finder/image.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ def self.size(pathname)
s = ::ImageSize.new(File.open(pathname)).size.to_s
s = nil if s.empty?
return s
rescue
nil
end

def self.resize(pathname, options = {})
Expand Down

0 comments on commit 0e3b06f

Please sign in to comment.