ofImage save Gif

Hi,

I want to suggest add in ofImage that is possible to save gif format. Actually it is very easy to add it this feature. And it is just one line of code inside ofImage.cpp

In method:

  
  
void ofImage::saveImageFromPixels(string fileName, ofPixels &pix){  
(...)  
  
   if((fif != FIF_UNKNOWN) && FreeImage_FIFSupportsReading(fif)) {  
	if (fif==FIF_GIF) bmp = FreeImage_ConvertTo8Bits(bmp);   // ADD THIS LINE !  
	FreeImage_Save(fif, bmp, fileName.c_str(), 0);  
   }  
  

best,

Mar