В Битрике есть возможность реализовать наложение водяного знака на изображения.
Можно наносить как изображения, так и текст. Чтобы нанести водяной знак на фотографию достаточно передать параметры фильтра:
$arFilter_watermark = Array(Array(‘name’ => ‘watermark’, ‘position’ => ‘br’, ‘size’=>’real’, ‘type’=>’image’, ‘alpha_level’=>’10’, ‘file’=>$_SERVER[‘DOCUMENT_ROOT’].’/img/watermark.png’, ),);
Возможные значения параметров:
position — указание расположения водяного знака на изображении возможно в двух нотациях:
tl | tc | tr | ml | mc | mr | bl | bc | br
или
topleft | topcenter | topright | centerleft | center | centerright | bottomleft | bottomcenter | bottomright
size — big | medium | small | real, для произвольного изменения масштаба возможно указание коэффициента через параметр ‘coefficient’, параметр ‘real’ применим только для изображений (‘type’=>’image’)
type — text | image
alpha_level — прозрачность от 0 до 100, где 0 = прозрачно, 100 = непрозрачно
text — текст водяного знака
font — путь к файлу с TTF-шрифтом
color — цвет в HEX-формате
Пример реализации:
$arFilters = Array(array(«name» => «watermark», «position» => «right», «size»=>»real», ‘type’=>’image’, «file»=>$_SERVER[‘DOCUMENT_ROOT’].»/images/watermark.png»));
Вместо /images/watermark.png подставляете свой путь к изображению водяного знака.
Далее при ресайзе изображения добавляете вывод фильтра $arFilters
$PICTURE = CFile::ResizeImageGet($arResult[«PREVIEW_PICTURE»], Array(‘width’=>455, ‘height’=>315), BX_RESIZE_IMAGE_EXACT, true, $arFilters);
Далее следует разместить код вывода нашего изображения с водяным знаком:
<_img src=_$PICTURE[src]_ alt=_$arResult[NAME]_ title=_$arResult[NAME]_>
Brannian jd, take clomid 50 mg alone propecia help
Wow, marvelous weblog format! How long have you been running
a blog for? you make running a blog glance easy. The full glance of your site is excellent, as neatly as the content material!
You can see similar here sklep online
Wow that was odd. I just wrote an extremely long comment but after I clicked submit my comment didn’t show
up. Grrrr… well I’m not writing all that over again.
Regardless, just wanted to say excellent blog! I saw similar here: Dobry sklep
I have been surfing online more than 3 hours these days, yet I never discovered any fascinating article like yours.
It’s pretty worth enough for me. In my opinion, if all site owners and
bloggers made good content as you did, the internet will probably be much more helpful than ever before.
I saw similar here: Najlepszy sklep
Hi! Do you know if they make any plugins to assist with
Search Engine Optimization? I’m trying to get my
site to rank for some targeted keywords but I’m not seeing very good results.
If you know of any please share. Cheers! I saw similar art here: Backlinks List
Wow, fantastic weblog structure! How lengthy have you been blogging for?
you make blogging look easy. The full look of your website is excellent, as smartly as the content material!
You can see similar here sklep internetowy
This was such an interesting read! I chuckled a few times. For more laughs and insights, visit: DISCOVER HERE. Anyone else have thoughts on this?
Hello there, just became alert to your blog through Google, and found that it
is truly informative. I am going to watch out for brussels.
I will be grateful if you continue this in future.
Numerous people will be benefited from your writing. Cheers!
Escape room lista
I like this weblog it’s a master piece! Glad I observed this on google..
I’m extremely pleased to discover this website. I need to to thank you for ones time for this particularly wonderful read!! I definitely liked every part of it and I have you saved to fav to look at new things in your website.
Having read this I believed it was very informative. I appreciate you finding the time and effort to put this short article together. I once again find myself personally spending a lot of time both reading and leaving comments. But so what, it was still worth it!
You’re so interesting! I do not suppose I’ve read anything like that before. So great to discover somebody with a few unique thoughts on this issue. Really.. thank you for starting this up. This website is one thing that’s needed on the web, someone with some originality.
Excellent article! We are linking to this great article on our website. Keep up the good writing.
I quite like reading a post that can make people think. Also, thanks for allowing for me to comment.
Hi, I do believe this is a great website. I stumbledupon it ;) I’m going to revisit yet again since i have book-marked it. Money and freedom is the best way to change, may you be rich and continue to guide other people.
An impressive share! I have just forwarded this onto a co-worker who was doing a little research on this. And he in fact bought me dinner simply because I stumbled upon it for him… lol. So let me reword this…. Thanks for the meal!! But yeah, thanx for spending the time to discuss this matter here on your internet site.
Aw, this was an exceptionally good post. Finding the time and actual effort to generate a great article… but what can I say… I put things off a lot and never manage to get anything done.
The next time I read a blog, Hopefully it doesn’t fail me just as much as this one. After all, Yes, it was my choice to read through, nonetheless I truly believed you would have something helpful to talk about. All I hear is a bunch of complaining about something you could fix if you were not too busy searching for attention.
I was able to find good info from your blog articles.
You ought to be a part of a contest for one of the best sites on the internet. I will highly recommend this site!
You have made some decent points there. I looked on the internet for more info about the issue and found most people will go along with your views on this website.
Everything is very open with a clear explanation of the issues. It was definitely informative. Your website is very helpful. Thanks for sharing!
You are so interesting! I do not suppose I’ve read something like that before. So good to find somebody with some genuine thoughts on this subject matter. Really.. many thanks for starting this up. This website is something that is required on the web, someone with some originality.