CodeIgniter Forums
watermarking and padding option - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: watermarking and padding option (/showthread.php?tid=43661)



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.