CodeIgniter Forums
watermarking and padding option - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: watermarking and padding option (/thread-43661.html)



watermarking and padding option - El Forum - 07-19-2011

[eluser]SneakyDave[/eluser]
This may be an issue for a lot of folks, but I'm not entirely sure what is causing it.

First, there's a typo on the Image Manipulation Class page:
http://ellislab.com/codeigniter/user-guide/libraries/image_lib.html

There is a reference to "$config['wm_padding'] = '20';"

In the list of "Watermarking Preferences", the parameter is labeled "padding", not "wm_padding".

I haven't had any good results with setting the wm_padding, so I set it at 0. If you set it to any other value, even 10 or 20 your watermark can be shifted right off the image.

If you're having problems with watermarks, try removing the wm_padding setting, or setting it to "0", and see if that resolves the immediate problem of the watermark not appearing.

Actually, I think the padding problem is related to where your watermark appears on your image. The top right position may not be as bad as the bottom left position.