RE: Number of frames in animated GIF

From: Olivier Couet <Olivier.Couet_at_cern.ch>
Date: Mon, 3 Mar 2008 10:52:38 +0100


Hi Vassili,  

Can you send me a small example reproducing your problem ?  

Cheers, O.Couet  

From: Vassili Maroussov
Sent: Friday, February 29, 2008 6:44 PM
To: Olivier Couet
Cc: roottalk
Subject: Re: [ROOT] Number of frames in animated GIF  

Dear Olivier,

Actually if I do TImage *img = TImage::Open("anim.gif.N") with not existing frame N, them img->IsValid() return false (I'm wondering why "img" is not 0 after an unsuccessful "TImage::Open" :)). How to suppress the error report by the "TImage::Open"?

Regards,

Vassili

Olivier Couet wrote:

With root you can write animated gi but you can read them. There is no way to retrieve the number of frames in a animated gif with a ROOT command.    

-----Original Message-----
From: Vassili Maroussov
Sent: Friday, February 29, 2008 5:41 PM
To: Olivier Couet
Cc: roottalk
Subject: Re: [ROOT] Number of frames in animated GIF  

I'm generating (a lot of) GIFs with various number of frames in ROOT and  

I wanted to have a simple frame-by-frame viewer. Well, in a case if I call TImage::Open("anim.gif.N") with not existing frame N, how can I know that?  

Cheers,  

Vassili  

Olivier Couet wrote:   

        Hi,          

        In principle you should know that when you build the animated gif.

	Simply count them when you add them in the animation.
	Is your animated gif build outside ROOT ? 
	 
	Cheers, olviier
	 
	-----Original Message-----
	From: owner-roottalk_at_root.cern.ch
[mailto:owner-roottalk_at_root.cern.ch]
	On Behalf Of Vassili Maroussov
	Sent: Friday, February 29, 2008 5:21 PM
	To: roottalk
	Subject: [ROOT] Number of frames in animated GIF
	 
	Dear ROOTers,
	 
	How to get number of frames in an animated GIF? I didn't find in
the 
	TSAImage a member function for that.
	 
	Regards,
	 
	Vassili
	 
	  
	    

 
  

 
Received on Mon Mar 03 2008 - 10:52:46 CET

This archive was generated by hypermail 2.2.0 : Mon Mar 03 2008 - 17:50:01 CET