Sujet : Re: how do I split animated gif frames into individual gif files
De : wortkarg3 (at) *nospam* yahoo.com (Harald Oehlmann)
Groupes : comp.lang.tclDate : 27. Oct 2024, 10:04:08
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vfkvm6$8ffq$1@dont-email.me>
References : 1
User-Agent : Mozilla Thunderbird
Dear Jim,
thank you for the question.
You have the -index option to get a particular image from an animated gif.
So:
image create photo myphoto -file ani.gif -format "gif -index 1"
Will return the 2nd image in the gif file.
Remark that with Tk 9.0, you get the animation parameters in the metadata property.
Thake care,
Harald
Am 26.10.2024 um 23:09 schrieb JinxsDad:
I need to split GOES EAST satellite imagery (the loop) animated gifs into
individual frames that my JStrack users (regardless of platform) can run
using a pure Tcl/Tk alternative to Img. I seem to remember hos to do
this, two decades and two cancers ago, but not anymore.
I do remember that it was fairly simple, but that's it. I don't even
remember where to start. I DO remember that once I had the individual
frames, I used a while loop with sleep to create the proper frame rate
for cycling through the gif frames.
Any assistance in help my cancer nuked brain remember how I split those
gifs without Img, please let me know.
Thanks,
--jim