public static function compassInlineImage($file, $mime = null)
{
if ($path = self::compassUrl($file, true, false)) {
$info = getimagesize($path);
$mime = $info['mime'];
$data = base64_encode(file_get_contents($path));
# todo - do not return encoded if file size > 32kb
return new SassString("url('data:{$mime};base64,{$data}')");
}
return new SassString('');
}