compass/src/test/testData/gems/compass-0.13.alpha.2/lib/compass/sass_extensions/functions/image_size.rb
def image_dimensions(image_file)
    image_file = image_file.respond_to?(:value) ? image_file.value : image_file
    options[:compass] ||= {}
    options[:compass][:image_dimensions] ||= {}
    options[:compass][:image_dimensions][image_file] = ImageProperties.new(image_path_for_size(image_file)).size
  end
# Returns the width of the image relative to the images directory
Returns the width of the image relative to the images directory
Returns the width of the image relative to the images directory
def image_dimensions(image_file)
    image_file = image_file.respond_to?(:value) ? image_file.value : image_file
    options[:compass] ||= {}
    options[:compass][:image_dimensions] ||= {}
    options[:compass][:image_dimensions][image_file] = ImageProperties.new(image_path_for_size(image_file)).size
  end
def image_dimensions ( image_file ) image_file = image_file . respond_to? ( :value ) ? image_file . value : image_file options [ :compass ] ||= { } options [ :compass ] [ :image_dimensions ] ||= { } options [ :compass ] [ :image_dimensions ] [ image_file ] = ImageProperties . new ( image_path_for_size ( image_file ) ) . size end
Returns the width of the image relative to the images directory
Returns the width of the image relative to the images directory
image_file