2005/12/5, Kees Jongenburger <[EMAIL PROTECTED]>:
> the mm:image tag is designed to be use inside a tag of type images
> what is happening I think is that image magic converts the text to a image
>
>
> try something like this:
>
> <mm:node number="default_image">
> <c:set var="color" value="ff6910"/>
> <c:set var="pointsize" value="16"/>
>                         <c:set var="text" value="home"/>
>                         <a href="<c:out value='${url}'/>"><img
> src="<mm:image 
> template="scale(100x26!)+font(mm:fonts/BMgaia.TTF)+pointsize(${pointsize})+channel(RGBA)+fill(${color})+stroke(${color})+strokewidth(8)+draw(text
> 5,20 '${text}')+stroke(white)+strokewidth(1)+fill(white)+draw(text
> 5,20 '${text}')+s(x18)+f(gif)"/>" border="0"/></a>
>
> </mm:node number="default_image">

b.t.w there is a sample in speeltuin/keesj/documentation/images
perhaps that can be used during the documentation week-end?


>
>
>
> 2005/12/5, Ferdinandus, Humphrey <[EMAIL PROTECTED]>:
> >
> >
> >
> > Hope you can help.
> >
> >
> >
> > When trying to convert an image in mmbase and putting text on it, I
> > encounter the following problem:
> >
> > I use the following statement in my jsp:
> >
> > <!—dummy image with alias dummytext à
> >
> > <mm:node number="dummytext">
> >
> > <img border="0" src="<mm:image template="<%=
> > "background(C9BDDD)+s(88x88)+font(mm:fonts/didactor.ttf)+fill(000000)+pointsize(10)+gravity(Center)+text(0,0,"+
> > sName + ")+rotate(315)" %>" />"/>
> >
> > </mm:node>
> >
> >
> >
> > It generates tmp files in the tomcat temp directory.
> > (mmbase_image_text_29332.tmp) This tmp file contains the text I want to add
> > to the picture.
> >
> > The tmp-file location is added to the image instead of the actual contents.
> > (C:\VWL_DEV\data\competentie\temp\
> > mmbase_image_text_29332.tmp)
> >
> >
> >
> > Where does it go wrong? Mmbase taglib or ImageMagick?
> >
> >
> >
> > I don't have a clue.
> >
> >
> >
> > Kind regards,
> >
> >
> >
> > Humphrey Ferdinandus
> >
> >
> >
> > PS: All other image functionality is working fine
> >
> >
> >
> >
> > --
> >  No virus found in this outgoing message.
> >  Checked by AVG Free Edition.
> >  Version: 7.1.362 / Virus Database: 267.13.11/191 - Release Date: 2-12-2005
> >
> > _______________________________________________
> > Developers mailing list
> > [email protected]
> > http://lists.mmbase.org/mailman/listinfo/developers
> >
> >
> >
>
_______________________________________________
Developers mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/developers

Reply via email to