uuhh. I thought this was standard procedure :( I think i'll write a small servlet and create the image in java. Thanks anyway. ernst
> -----Oorspronkelijk bericht----- > Van: Michiel Meeuwissen [mailto:[EMAIL PROTECTED] > Verzonden: dinsdag 9 maart 2004 12:42 > Aan: [EMAIL PROTECTED] > Onderwerp: Re: imagemagick and text > > > Ernst Bunders <[EMAIL PROTECTED]> wrote: > > I am trying to to make imagemagick print texts over images. > Currently i am > > developing on windows but production is linux. Questions: do i need > > ghostscript? can i configure imagemagick to use local fonts > on windows? how > > about configuration on linux/fontserver? > > I would use ttf-fonts, which I think could be put in > WEB-INF/config/fonts or > so. Then you can say something like this: > <img src="<mm:image > template="s(600x80!)+f(png)+modulate(200,0)+font(mm:fonts/Aria > l.ttf)+fill(ff0000)+pointsize(20)+text(20,50,'$_')" > />" alt="<mm:field name="title" />" />: <mm:field > name="description" /> > > (copied from 'codings' examples). > > You could also configure in imagemagic itself where the fonts > are, but that > could be a bit tricky. Search for 'mgk' files. > > I think on linux you might indeed need ghostscript. > > I must warn however that in JDK 1.4 I did not succeed to use other > characters then ASCII. For some completely unclear reason SUN > decided that > Runtime.exec should be vere picky on that, and ruins every > byte-array that > is not only ascii :-( I think they even argument that you > should change the > program which you're calling to make it understand java-escaping or so > (incredible, isn't it). > > So, thatworked fine in JDK 1.3, but not any more, and I lost > all courage then. > > MIchiel > > > -- > Michiel Meeuwissen > Mediapark C101 Hilversum > +31 (0)35 6772979 > nl_NL eo_XX en_US > mihxil' > [] () >
