Method: Celerity::Image#file_size

Defined in:
lib/celerity/elements/image.rb

#file_sizeObject Also known as: fileSize

returns the file size of the image in bytes



38
39
40
41
42
# File 'lib/celerity/elements/image.rb', line 38

def file_size
  assert_exists
  web_response = @object.getWebResponse(true)
  web_response.getContentAsString.bytesize
end