I suppose you could pass the GIF data in to a BrowserWidget running one of those JS libs on it, but that seems rather convoluted. I know there's a few JavaScript libraries (or web ports of common offline libraries) that can do those sort of thing, but we may have our GIF's image data embedded into our stacks inside 'the text of image." (that always bothered me, it is NOT text ,it's bin data from one of several supported file formats) which we can easily get and set. getting into movie territory and with todays computers and devices you'd probably be better off using a compressed video format like. I've only ever used GIF for short animations like an animated loading graphic, not sure what the goal of the OP GIF was, but a 3mb GIF is rather large for a GIF file. And the image data could be passed around in memory for other uses ( like applying filter effects with CoreImage Filters for example ) I've experimented with that technique with 'compiled' SVG' image data in LC and it's pretty darn fast to render, might work just as well with bitmapped image frames. it could be useful to load the frames image data into memory, like in an array for fast access. These file formats have been around for a long time and are well documented. I'll have to dig that out and see if I can't add some stuff like individual frame extracting. I re-wrote it, adding jPEG and PNG header parsing using LC script a few years back. I know this thread is a little dusty, but has no one really ever written an xTalk library for doing stuff with GIF frames / files? I mean I've written scripts that parse GIFf headers for basic info (H/W Size in px, frameCount, Color Index, etc.) like 27-28 years ago (needed an XCMD to read binary / null bytes to do stuff like that in HyperCard back then). ![]() Swapping frames may mean it has to use disk space as temporary memory and that will cause slower animation. A 3MB gif is very large and it's probably using most available RAM. ![]() It's been too long since I created any gifs so I don't recall what they call those formats, but the second method can reduce the size dramatically. One way saves the entire content of every frame, the other way is to save only the differences between frames.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |