Git Hub
коротко
1 заметка с тегом

Товар

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"]],
                );
        }
Bitrix   Images   Товар