Page 1 of 1

help with VB text to gif conversion

Posted: 2007-11-06T03:42:00-07:00
by minus4
hi there, have almost got this working great but for some reason i cant seem to get the height

example i have some text "this is some text" loaded in font with -pointsize 55

what i get is an image of about 10px high so only see top of the words, i cant use -size as the width can not be set and needs to be random to the lengh of the text string

here is my code

Code: Select all

msgs = img.convert("-background", "transparent", "-font", setFont(rsTemp("fontF")), "-gravity", gravity, "-pointsize", Int(rsTemp("fontSize")), "label:"&cleantext(rsTemp("textused"))&"",  "D:\path\temp\"&filename&".gif")
the functions setFont just swapps the space within a font name to a - and cleantext changes vbCrlf into \n

also i must note that this is on a loop, so it creates like 4-10 images

thanks very much

dave

Re: help with VB text to gif conversion

Posted: 2007-11-06T05:45:28-07:00
by minus4
this is now fixed, all works fine i had it set as a background without a no-repeat tag so ended up looking strange

thanks though