Print("out.gif") does not work as expected

Hello,
I am trying to write canvas to GIF file in batch mode (SCL3, root5.08/00). I use very simple script which is placed below.
If I run it in BATCH mode (root -b test.C) it works fine and produces GIF image with size ~300kB (out-b.gif in attachment)
If I run it in REGULAR mode (root; .L test.C; test()) it works fine again but produces GIF image with size ~7kB (out-s.gif in attachment)
Both images are looked the same (at least for eyes), but why they have different size more than 40 times? Can it be fixed somehow?

void test(void) {
TCanvas *cnv = new TCanvas(“cnv”,“cnv”,800,600);
cnv->SetFillColor(0);
TH1 *histo = new TH1F(“histo”,“histo”,2,0,2);
histo->Fill(1);
cnv->cd();
histo->Draw();
cnv->Print(“out.gif”);
}




see recent discussion in this Forum at:
root.cern.ch/phpBB2/viewtopic.php?t=2945

Rene

Thank you very much for fast and short answer.
Saving to PNG is the best option!