Created
March 15, 2019 10:52
-
-
Save webag/082c2b360c794cb1f15ea6ec8cb66b7c to your computer and use it in GitHub Desktop.
bitrix watermark
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? $watermark = Array( | |
array("name" => "watermark", "position" => "bottomright", "size"=>"real", "file"=>$_SERVER['DOCUMENT_ROOT'].SITE_TEMPLATE_PATH."/img/watermark.png"), | |
array("name" => "watermark", "position" => "center", "size"=>"real", "file"=>$_SERVER['DOCUMENT_ROOT'].SITE_TEMPLATE_PATH."/img/watermark_text.png") | |
);?> | |
<?$photo_resized = CFile::ResizeImageGet($photo, array('width'=>960, 'height'=>640), BX_RESIZE_IMAGE_EXACT, false,$watermark);?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment