$arWaterMark = Array(
array(
"name" => "watermark",
"position" => "center", // Положение
"type" => "image",
"size" => "real",
"file" => $_SERVER["DOCUMENT_ROOT"].'/img/wt.png', // Путь к картинке
"fill" => "exact",
)
);
$arFileTmp = CFile::ResizeImageGet(
$arResult["DETAIL_PICTURE"]['ID'],
array("width" => 1200, "height" => 1200),
BX_RESIZE_IMAGE_PROPORTIONAL,
true,
$arWaterMark
);
$arResult["DETAIL_PICTURE"]['SRC'] = $arFileTmp['src'];
Теги: WaterMark, ResizeImageGet, водяной знак, масштабирование картинкиТеги: WaterMark, ResizeImageGet, водяной знак, масштабирование картинки
02.03.2020