get geometry of the image #768

Closed
wants to merge 1 commit into
from
Jump to file or symbol
Failed to load files and symbols.
+4 −0
Split
@@ -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