# File lib/mini_magick/image/info.rb, line 43 def cheap_info(value) @info.fetch(value) do format, width, height, size = self["%m %w %h %b"].split(" ") path = @path path = path.match(/\[\d+\]$/).pre_match if path =~ /\[\d+\]$/ @info.update( "format" => format, "width" => Integer(width), "height" => Integer(height), "dimensions" => [Integer(width), Integer(height)], "size" => File.size(path), "human_size" => size, ) @info.fetch(value) end rescue ArgumentError, TypeError raise MiniMagick::Invalid, "image data can't be read" end