YUYU
asked on
how to put text watermark on site images
how to put text watermark on site images :
is there any class or something can do that ....
example : (www.bokra.net) --> watermark
2-20-2836-29.jpg
is there any class or something can do that ....
example : (www.bokra.net) --> watermark
2-20-2836-29.jpg
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I've requested that this question be deleted for the following reason:
no benefit solution
no benefit solution
I object to deleting this question. This is a very well understood design pattern, used daily by thousands of sites around the world. I posted a tested and working code example showing exactly how it is done. I posted the test data, the complete code, and a link to the script so you can see it in action. It's all there and it works. If you have some kind of misunderstanding of the solution I posted, please give us your comments or at least try to work with us instead of just deleting the question. Thanks, ~Ray
Recommend accept http:#36521673 -- that is how it is done in the real world by the professionals.
2 options i think:
1) if you have hosting that allows you to run shell, you can use imagemagick utility.
2) if not you probably have to use GD library and change the images from php directly
All images need to be linked thrugh php ( no direct access to the images ) or yet better redirect the request to watermarked image automatically with .htaccess
.htaccess can check if the watermaked image is prepared ( file exists )
if yes - redirect directly to image
if not - redirect to php script that will create the watermarked image.
the php script will create new image combining the watermark image with the original, and saving it so it needs to be done only once.
example of creating the image - http://www.sitepoint.com/watermark-images-php/
I suggest you don't do it everytime image is requested, but save it, as the image manipulation through GD is really memory expensive.