Git Hub
коротко

Bitrix: Resize Image

13 октября 2015, 14:31
$arSlider=[];
        foreach ($arItem["PROPS"]["MORE_PHOTO"]["VALUE"] as $fileId){
            $detail = \CFile::ResizeImageGet($fileId,array("width"=>1009,"height"=>487),BX_RESIZE_IMAGE_PROPORTIONAL,true);
            $preview = \CFile::ResizeImageGet($fileId,array("width"=>285,"height"=>134),BX_RESIZE_IMAGE_EXACT,true);
            $arSlider[] = array(
                "DETAIL_PICTURE"=>["SRC"=>$detail["src"]],
                "PREVIEW_PICTURE"=>["SRC"=>$preview["src"]],
                );
        }
Поделиться
Популярное