Text Wrapping in G.D Library

images php coding issues or problems here.

Moderators: macek, egami, gesf

tamill
New php-forum User
New php-forum User
Posts: 8
Joined: Tue Aug 23, 2005 5:55 pm

Text Wrapping in G.D Library

Postby tamill » Sat Oct 22, 2005 6:56 pm

Text Wrapping in G.D Library

Hi,

I need to know whether the is any possiblity in wraping a long text in a piture that is created with the G.D library function imagettfbox() & imagettftext() function.

for Example the

The Text is like

Welcome to the world of php. Php stands for Hypertext Pre-Processor.

Screenshot 1:

Image

in the screenshot 1 the text is written in the picture but it does not wrap.

I want similar thing like this:

Image

I want some help to wrap the text that is to be written in the picture.

Via imagettftext(). If there is any idea please help me.

Thanks in advance.

User avatar
Alexej Kubarev
Site Admin
Site Admin
Posts: 2223
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län
Contact:

Postby Alexej Kubarev » Sun Oct 23, 2005 2:01 am

wordwrap() function might help.

look here: http://se.php.net/manual/en/function.wordwrap.php

tamill
New php-forum User
New php-forum User
Posts: 8
Joined: Tue Aug 23, 2005 5:55 pm

Postby tamill » Sun Oct 23, 2005 9:30 pm

thanks buddy it is really useful

once again thanks

User avatar
Alexej Kubarev
Site Admin
Site Admin
Posts: 2223
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län
Contact:

Postby Alexej Kubarev » Mon Oct 24, 2005 10:29 am

welcome :)


Return to “PHP coding => Images”

Who is online

Users browsing this forum: No registered users and 1 guest

cron