You are here

public function SassExtentionsCompassFunctionsImageSize::image_height in Sassy 7

File

phamlp/sass/extensions/compass/functions/imageSize.php, line 26

Class

SassExtentionsCompassFunctionsImageSize
Compass extension SassScript image size functions class. A collection of functions for use in SassSCript. @package PHamlP @subpackage Sass.extensions.compass.functions

Code

public function image_height($image_file) {
  $image_size = getimagesize(self::real_path($image_file));
  return new SassNumber($image_size[1] . 'px');
}