Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
get geometry of the image
Browse files Browse the repository at this point in the history
  • Loading branch information
kuboon committed Mar 2, 2012
1 parent c95609b commit 3114d0e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/paperclip/attachment.rb
Expand Up @@ -485,5 +485,9 @@ def cleanup_filename(filename)
filename.gsub(@options[:restricted_characters], '_')
end
end

def geometry
@geometry ||= Paperclip::Geometry.from_file self.path
end
end
end

0 comments on commit 3114d0e

Please sign in to comment.