Edwin van der Elst wrote
> Question for the taglib experts:
>
> I use the mm:image tag to display an image 'as it was uploaded'. This
works,
> it is not scaled.
> But..... my gif is converted to a jpg.
>
> How can I avoid this? (I am using JAI, will not switch to imagemagik).
> template='f(gif)' didn't work.
>
In the past there was a a patent on compression in a gif. Therefore there is
no gif writing support in JAI. Reading is no problem. Using some open source
code, I added once gif writing for MMBase using JAI, but it was not
accepted in the new builds. Just keep asking a few times for it, may be that
helps :-).
I also think it is pretty stupid that a web tool like MMBase has no real gif
support when it comes out of the box. At the moment you have to run your own
server and install ImageMagick on it.
Another point you mention is the automatic conversion of everything to gif.
Also not very nice. As a workaround you can check the itype of the image and
use +f(${itype}) to correct this, but this does not work with JAI for gifs.
Martijn Houtman