Rommeo Posted December 10, 2011 Share Posted December 10, 2011 I ll put watermark to the photos of my website and I have two options : 1-) I may put watermark while uploading the image. And watermark will be applied to the original image and can not remove it. 2-) I may put watermark while showing the image, the original image will not be affected and I ll keep it as it is in the folder, just while showing watermarked image will be created ( watermark.png will be applied by the function) so according to your experiments, which one would you go with ? for first one, I m thinking about a solution if I want to change the logo of the website, then some of the images will have an old logo. for second one, I m wondering if the website will slow down, since it will create the same image again and again whenever you click the image.. Quote Link to comment https://forums.phpfreaks.com/topic/252882-about-watermarks/ Share on other sites More sharing options...
QuickOldCar Posted December 10, 2011 Share Posted December 10, 2011 Personally I would use gd and watermark the image on display, leaving the original uploaded image untouched. http://www.roseindia.net/tutorial/php/phpgd/About-%20watermark.html If you have many of them and constantly producing them with gd, you could cache the watermarked image It all really depends if full size images are available for download or not, possibly for paying customers. Quote Link to comment https://forums.phpfreaks.com/topic/252882-about-watermarks/#findComment-1296552 Share on other sites More sharing options...
xyph Posted December 10, 2011 Share Posted December 10, 2011 Keep the original image in a folder outside of webroot. Copy the image, adding the watermark, to the public images directory. You don't want to do image processing on the fly if you can avoid it. Since these changes are static and always the same, they should only be done once. At the same time, it may be valuable to keep the unchanged image. Since disk space is insanely cheap these days, I suggest storing two copies of the image. One with, and one without the watermark. Only allow the one with the watermark to be viewed. Quote Link to comment https://forums.phpfreaks.com/topic/252882-about-watermarks/#findComment-1296618 Share on other sites More sharing options...
Rommeo Posted December 10, 2011 Author Share Posted December 10, 2011 Thank you so much for your comments! Quote Link to comment https://forums.phpfreaks.com/topic/252882-about-watermarks/#findComment-1296633 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.