reduce http requests (ugc images + posters)

This commit is contained in:
2015-08-30 17:20:36 +02:00
parent 304c31d870
commit 0eea962e60
5 changed files with 14 additions and 10 deletions

View File

@@ -33,7 +33,7 @@ function getPage($sPath, $asVars, $sType)
if($sType=='html')
{
$sContent = preg_replace('/<script(.*)<\/script>/sU', '', $sContent);
$sContent = preg_replace('/<img src="(.*)"(.*)\/>/sU', '<img source="$1"$2/>', $sContent);
$sContent = preg_replace('/src=("|\')(.*)("|\')/sU', 'source="$2"', $sContent);
}
return $sContent;
@@ -57,7 +57,7 @@ function getTrimImage($iFilmId, $sSize, $sinPath, $sImageExt)
$iBottom = 0;
$iLeft = 0;
$iRight = 0;
$iWhiteLimit = 220;
$iWhiteLimit = 210;
//Top height to crop:
for(; $iTop < $iImageY; ++$iTop)