reduce http requests (ugc images + posters)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user