if(is_array($arResult["DETAIL_PICTURE"]))
{
$arFilter = '';
if($arParams["SHARPEN"] != 0)
{
$arFilter = array(array("name" => "sharpen", "precision" => $arParams["SHARPEN"]));
}
$arFileTmp = CFile::ResizeImageGet(
$arResult['DETAIL_PICTURE'],
array("width" => $arParams["DISPLAY_DETAIL_IMG_WIDTH"], "height" => $arParams["DISPLAY_DETAIL_IMG_HEIGHT"]),
BX_RESIZE_IMAGE_PROPORTIONAL,
true, $arFilter
);
$arResult['PREVIEW_PICTURE'] = array(
'SRC' => $arFileTmp["src"],
'WIDTH' => $arFileTmp["width"],
'HEIGHT' => $arFileTmp["height"],
);
}
if (is_array($arResult['MORE_PHOTO']) && count($arResult['MORE_PHOTO']) > 0)
{
unset($arResult['DISPLAY_PROPERTIES']['MORE_PHOTO']);
foreach ($arResult['MORE_PHOTO'] as $key => $arFile)
{
$arFilter = '';
if($arParams["SHARPEN"] != 0)
{
$arFilter = array(array("name" => "sharpen", "precision" => $arParams["SHARPEN"]));
}
$arFileTmp = CFile::Re |