This content has been marked as final. Show 5 replies
i may be wrong, but i think there is a license issue with creating .gif
files (just using .gif format, i believe)....
i know other utilities (i.e. imageCFC) that can read and manipulate .gif
files, but will only save the result as .png due to these license issues
just checked the cfimage documentation, and it does say:
"You cannot display a GIF image in a browser. GIF images are
displayed in PNG format."
I was afraid of that. Dang! Thanks for the reply... I guess back to storing the actual files in structure.
cfimage does allow writing gif files. When you use "writeToBrowser" action, by default it writes the image as png image. However, it does allow you to specify your own format using format attribute.
So you can use
<cfimage action="writeToBrowser" format="gif" source="#imagenew(logo)#">
Let me know if that does not work.
Thanks for the reply rupesh,
But that only goes for standard gif images, animated gifs aren't supported... right??
Hmmm.. thats true. Animated gifs are actually not one image but a set of images clubbed together in one gif file. so in a sense they are actually like a movie. When you create image object out of it, image object is created for the first frame only. and when that image is saved back as gif, all other frames are lost.