Search found 63 matches

by dt59
2017-08-28T00:32:08-07:00
Forum: Developers
Topic: hw to offset text from the top of an image and give it a text alignment of center
Replies: 50
Views: 92249

Re: hw to offset text from the top of an image and give it a text alignment of center

hello fred, did u test the code. am having undesired result,check pls
by dt59
2017-08-27T23:09:16-07:00
Forum: Developers
Topic: hw to offset text from the top of an image and give it a text alignment of center
Replies: 50
Views: 92249

Re: hw to offset text from the top of an image and give it a text alignment of center

i will want to maintain the center text alignment by using the gravity = center, because i don't known the length of the text the user is going to type in. therefore i may not want to manually tweak the position of the text. however i will want the text to be at the center of the box. is that possib...
by dt59
2017-08-27T22:59:35-07:00
Forum: Developers
Topic: hw to offset text from the top of an image and give it a text alignment of center
Replies: 50
Views: 92249

Re: hw to offset text from the top of an image and give it a text alignment of center

i want to truncate the text if the text entered by the users is longer than box size, from what am seeing now, if the user enter a text longer than box the box then extent to the side of the 500x500 background.
by dt59
2017-08-27T22:52:41-07:00
Forum: Developers
Topic: hw to offset text from the top of an image and give it a text alignment of center
Replies: 50
Views: 92249

Re: hw to offset text from the top of an image and give it a text alignment of center

box size, i want to truncate the text if the text entered by the users is longer than box size.
by dt59
2017-08-27T21:14:48-07:00
Forum: Developers
Topic: hw to offset text from the top of an image and give it a text alignment of center
Replies: 50
Views: 92249

Re: hw to offset text from the top of an image and give it a text alignment of center

well explained am beginning to understand hw IM is working. i can now create some IM command on my own, thanks fred for the kind lectures. finally have fixed the spacing problem by using /"your string here/" :D :D :D fred is their a way i could set the height and width of the red border so...
by dt59
2017-08-27T16:31:41-07:00
Forum: Developers
Topic: hw to offset text from the top of an image and give it a text alignment of center
Replies: 50
Views: 92249

Re: hw to offset text from the top of an image and give it a text alignment of center

hello Fred have read some of these stuff here on IM bt don't have a full understanding as the way u just briefly explained it. am sorry for my newbie questions.
please Wat the difference between xc and the background image operator??
by dt59
2017-08-27T14:11:47-07:00
Forum: Developers
Topic: hw to offset text from the top of an image and give it a text alignment of center
Replies: 50
Views: 92249

Re: hw to offset text from the top of an image and give it a text alignment of center

pls can somebody explain -trim, +repage and -smush.
and why the signs - and +.
by dt59
2017-08-27T14:05:16-07:00
Forum: Developers
Topic: hw to offset text from the top of an image and give it a text alignment of center
Replies: 50
Views: 92249

Re: hw to offset text from the top of an image and give it a text alignment of center

kk fmw, let me try the above code first however could you point to some of those Windows PHP users.
the spacing between the text is causing lots problem. hw can i solve these? any PHP user home??
by dt59
2017-08-27T13:57:24-07:00
Forum: Developers
Topic: hw to offset text from the top of an image and give it a text alignment of center
Replies: 50
Views: 92249

Re: hw to offset text from the top of an image and give it a text alignment of center

hm, two errors are still showing :( :

magick: unable to open image 'first': No such file or directory @ error/blob.c/OpenBlob/3109.
magick: no decode delegate for this image format `' @ error/constitute.c/ReadImage/509.

what can i do next...
by dt59
2017-08-27T12:41:55-07:00
Forum: Developers
Topic: hw to offset text from the top of an image and give it a text alignment of center
Replies: 50
Views: 92249

Re: hw to offset text from the top of an image and give it a text alignment of center

its not still working, can somebody please help me fix it. here is code: $ou = "magick "; $ou .= "(". "-background white -fill black -gravity center -pointsize 36 label:'my first text' -trim +repage" ." ) "; $ou .= "(". "-background white -fill ...
by dt59
2017-08-26T20:51:53-07:00
Forum: Developers
Topic: hw to offset text from the top of an image and give it a text alignment of center
Replies: 50
Views: 92249

Re: hw to offset text from the top of an image and give it a text alignment of center

Bonzo wrote: 2017-08-26T14:03:38-07:00 If you are on a Linux system you need to escape the ( ) like \( \)
no, am using window, do i still need to escape if yes hw do i escape
by dt59
2017-08-26T20:44:50-07:00
Forum: Developers
Topic: hw to offset text from the top of an image and give it a text alignment of center
Replies: 50
Views: 92249

Re: hw to offset text from the top of an image and give it a text alignment of center

you men are genius worked like charm i can now see my errors and fix them, one after the other. thanks fmw for ur smart code, snibgo and bonzo big thanks. but there seems to be alot errors: magick: unable to open image '(-background': No such file or directory @ error/blob.c/OpenBlob/3109. magick: n...
by dt59
2017-08-26T13:44:43-07:00
Forum: Developers
Topic: hw to offset text from the top of an image and give it a text alignment of center
Replies: 50
Views: 92249

Re: hw to offset text from the top of an image and give it a text alignment of center

I am sending stderr to stdout and saving (errors) messages in $out. Then use foreach to display that to your web page when running the PHP code. but the above code is not working. showing me error on that same line. pls help me fm i really need to make these work. if possible just review that ur ab...
by dt59
2017-08-26T00:48:08-07:00
Forum: Developers
Topic: hw to offset text from the top of an image and give it a text alignment of center
Replies: 50
Views: 92249

Re: hw to offset text from the top of an image and give it a text alignment of center

try this <?php $ou = "magick "; $ou .= "(-background white -fill black -gravity center -pointsize 36 label:'my first text' -trim +repage ) "; $ou .= "(-background white -fill black -gravity center -pointsize 36 label:'center text' -trim +repage ) "; $ou .= "-gravi...
by dt59
2017-08-26T00:37:52-07:00
Forum: Developers
Topic: hw to offset text from the top of an image and give it a text alignment of center
Replies: 50
Views: 92249

Re: hw to offset text from the top of an image and give it a text alignment of center

snibgo wrote: 2017-08-25T15:56:08-07:00 I don't use PHP. There are examples on these forums.
can you please point to one of them