Ferdinandus, Humphrey wrote: > 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 `a > > <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?
The '@' feature of 'draw' of image-magick is used (since 1.7.x, I suppose) IIRC that is to get encoding right (because is is a disaster to get those right on a system-call argument). I cite from image-magic doc: -draw 'text 100,100 "%m:%f %wx%h"' annotates the image with MIFF:bird.miff 512x480 for an image titled bird.miff and whose width is 512 and height is 480. If the first character of string is @, the text is read from a file titled by the remaining characters in the string. So, my first guess is that perhaps you use an older version of image-magick which does not support this (I don't know how long this feature is in it), and that you don't merely see the this filename, but a filename prefixed by '@'. Michiel -- Michiel Meeuwissen mihxil' Peperbus 111 MediaPark H'sum [] () +31 (0)35 6772979 nl_NL eo_XX en_US _______________________________________________ Developers mailing list [email protected] http://lists.mmbase.org/mailman/listinfo/developers
