YuriDan
11/5/2013 - 10:52 AM

Bitrix - CFile::ResizeImageGet()

<?
// Массив фильтров с указанием водяного знака
$arFilters = Array( array("name" => "watermark", "position" => "center", "size"=>"real", "file"=>$_SERVER['DOCUMENT_ROOT']."/upload/watermark.png") );
$file = CFile::ResizeImageGet($arItem['PREVIEW_PICTURE']['ID'], array('width'=>800, 'height'=>800), BX_RESIZE_IMAGE_PROPORTIONAL, true, $arFilters);                
$img = '<img src="'.$file['src'].'" width="800" alt="" title="" />';?>