Class/Module Index [+]

Quicksearch

Compass::Core::SassExtensions::Functions::ImageSize

Constants

KNOWN_TYPES

Public Instance Methods

image_height(image_file) click to toggle source

Returns the height of the image relative to the images directory

# File lib/compass/core/sass_extensions/functions/image_size.rb, line 11
def image_height(image_file)
  _, height = image_dimensions(image_file)
  number(height, "px")
end
image_width(image_file) click to toggle source

Returns the width of the image relative to the images directory

# File lib/compass/core/sass_extensions/functions/image_size.rb, line 5
def image_width(image_file)
  width, _ = image_dimensions(image_file)
  number(width, "px")
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.