animated gifs: binary data

Get help with using AutoHotkey and its commands and hotkeys
User avatar
jeeswg
Posts: 6718
Joined: 19 Dec 2016, 01:58
Location: UK

animated gifs: binary data

22 Aug 2019, 18:53

- I was interested in the structure of binary data for animated gifs.
- E.g. to get 'is animated' and 'frame count' info.
- E.g. to create animated gifs via AutoHotkey, from bmp/png files.
- So I'm posting here in case anybody has any good links re. gif files. (I did look in the past.)

- I did some similar work on bmp and ico files. See my 'HOW DOES IT WORK?' section, here:
jeeswg's homepage - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=17&t=30931&p=144442#p144442

- Here is some info on how to get 'is animated' and 'frame count' info for gif files. However, both are a bit awkward/have drawbacks. So a native AHK solution would have some advantages.
Expert Challenge: Get width and height from an image file reading as few bytes as possible. - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=17&t=66880&p=287812#p287812
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
User avatar
jballi
Posts: 571
Joined: 29 Sep 2013, 17:34

Re: animated gifs: binary data

23 Aug 2019, 03:51

jeeswg wrote:
22 Aug 2019, 18:53
- I was interested in the structure of binary data for animated gifs.
- E.g. to get 'is animated' and 'frame count' info.
- E.g. to create animated gifs via AutoHotkey, from bmp/png files.
- So I'm posting here in case anybody has any good links re. gif files. (I did look in the past.)
tmplinshi created a GIF class that was adapted from a GIF class published by tic. The code uses the gdip library from tic. tmplinshi's version of the class includes additional code to get the frame count and the frame delay for each frame. If the frame count is 1, the gif is not animated. You can find the post here:
https://www.autohotkey.com/boards/viewtopic.php?p=112572#p112572

The GIF file format is fairly well documented in Wikipedia:
https://en.wikipedia.org/wiki/GIF

Creating GIF files using only AutoHotkey may be more trouble than it's worth. Good luck with that.

Return to “Ask For Help”

Who is online

Users browsing this forum: No registered users and 205 guests