CodeIgniter Forums
Image Watermarking - Centering - 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: Image Watermarking - Centering (/thread-33734.html)



Image Watermarking - Centering - El Forum - 09-06-2010

[eluser]Unknown[/eluser]
Hi,

I've been experimenting with Code Igniter's image manipulation class and so far I'm very impressed!

One thing that I think may be a bug however is that the config property to center a text watermark on an image only seems to work with the default GD font.

I've experimented with other variable and fixed width fonts and have discovered that it's the spaces that cause the incorrect alignment.

For example, if I have a single word, it's perfectly centered. However, if I then have 2 words, it's slightly off. Adding other words (and thus more spaces) makes the centering even further off.

Any help fixing this issue would be greatly appreciated!

Thanks.


Image Watermarking - Centering - El Forum - 09-11-2010

[eluser]Mat-Moo[/eluser]
Try my image_moo lib (in sig) that has text watermarking, see if it's any better.