Martin Kool <[EMAIL PROTECTED]> wrote: > I have a question regarding imagemagick functionality in mmbase. > Basically this is what I am trying to do: > > - get an image from mmbase > - scale it to my preferred size > - make it have a colored oval border > - make the edges of that border transparent > > Right now I retrieve the image with a call like this: > > http://localhost/img.db?1541+s(200)+dia+flipy
In MMBase 1.6 this way will be 'deprecated', and not-working if you use ImageServlet. The easiest way of accessing the same functionality is using the 'image-tag' from the taglib. > > Can anyone tell me if the following is possible (and how): > > - passing special imagemagick commands to the above line URL like > "composite -compose minus" > - by doing so, outputting a composite of two images using imagemagick's > composite (command-line) call "composite image1.gif image2.gif -compose > minus imageoutput.gif" > - can I apply transparency to a specific RGB color in the resulting gif, > preferably within the same http call to img.db Composition of more than one (mmbase) images is currently not possible. All imagemagick functionality can be used by the 1.6 version of images. See documentation of imagemagick and of the image-tag. > If my wishes can be realised by modifying java code like the img.db > servlet, any starting point would of course also be most welcome! org/mmbase/module/builders/ConvertImageMagick.java org/mmbase/module/builders/Images.java org/mmbase/servlet/ImageServlet.java Hope it helps, Michiel -- mihxil' Michiel Meeuwissen Mediapark C101 Hilversum +31 (0)35 6772979 []()
