We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5188b9d commit 8199b00Copy full SHA for 8199b00
lib/concerto_image_magick.rb
@@ -5,6 +5,10 @@ def self.load_image(file_contents)
5
return Magick::Image.from_blob(file_contents).first
6
end
7
8
+ def self.image_info(img)
9
+ return { size: img.filesize, density: img.density, width: img.columns, height: img.rows } if !img.nil?
10
+ end
11
+
12
def self.new_drawing_object
13
return Magick::Draw.new
14
0 commit comments