public function SassExtentionsCompassFunctionsImageSize::image_width in Sassy 7
File
- phamlp/
sass/ extensions/ compass/ functions/ imageSize.php, line 20
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_width($image_file) {
$image_size = getimagesize(self::real_path($image_file));
return new SassNumber($image_size[0] . 'px');
}