Writing a .gif animator software

This is a discussion on Writing a .gif animator software within the Windows Programming forums, part of the Platform Specific Boards category; Hey guys, recently i have started to work with website designing and kinda took notice of .gif animation files. I ...

  1. #1
    rEtaRD r HUMANS TOO !!! rEtard's Avatar
    Join Date
    Feb 2005
    Posts
    80

    Writing a .gif animator software

    Hey guys, recently i have started to work with website designing and kinda took notice of .gif animation files. I made a search for some freeware softwares and most only allow me to use the software for a limited period. So it kinda struck me why don't i try writing my own .gif animator. So the problem comes,
    1) Where can i read up more abt the mechanics of .gif files, i know they r made of .bmp or .jpg files stacking over each other but how do u actually make this work ?
    2) Is there a specific API for writing such softwares ?
    3) Lastly, just in case im gonna write such a software next time, what are the keywords i should use in google to search for what i wan. For etc, i wanna make a .gif animator so i would needa know the API, and the mechanics to make it.
    Ps i've only worked with note-taking programs and their outputs are only .txt files so im still a greenhorn to really making hard-core programs so can someone please guide me.
    /* Have a nice day */

  2. #2
    Registered User Queatrix's Avatar
    Join Date
    Apr 2005
    Posts
    1,342
    I know of some big image programs that can save gifs like you want. What kind of image processors do you have?

  3. #3
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    I would be surprized if this feature hadn't already been incorporated into GIMP - check that out. But if you still want to make the program...

    1) Where can i read up more abt the mechanics of .gif files, i know they r made of .bmp or .jpg files stacking over each other but how do u actually make this work ?
    I wouldn't say that - gif files store each pixel, just like bmps (jpegs make approximations and sacrifice details for space), but gif still pictures are compressed - so if anything, animated gifs are still gifs stacked on top of eachother.

    You can probably find the file format at www.wotsit.org. One of the major picture formats has some legal issues on where it can be used (refer to the GIMP website) - and I think it may be gif. But for personal use I'm sure it wouldn't be a problem.

    Easier than that, I'd be really surprized if there wasn't already an API for generating GIFs. Keep searching google. Keywords like, "C++ image processing library".

    edit: And everytime someone asks about gifs, I'm reminded of this classing Strong Bad Email:

    http://www.homestarrunner.com/sbemail51.html

  4. #4
    Registered User
    Join Date
    Jul 2005
    Posts
    69
    This is a gif animator software from the old days. I still have a copy and use it now and then. MS GIF Animator Sorry it's not going to help you with coding but I think a little utility like this comes in handy from time to time.

    Regards,
    Brian

  5. #5
    rEtaRD r HUMANS TOO !!! rEtard's Avatar
    Join Date
    Feb 2005
    Posts
    80
    ah great, i guess its gd enuf for the meantime. I will check out whether theres an API for processing .gif files and let you guys know. Anyway what about capturing Desktop images ? Whats the function i shld look out for ? kinda like those programs like screenprint
    /* Have a nice day */

  6. #6
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    if you want to write a gif editor then GDI+ makes a good starting point with static gif support built in and dynamic gif support is easily added.
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 05-20-2008, 09:57 AM
  2. Very slow file writing of 'fwrite' function in C
    By scho in forum C Programming
    Replies: 6
    Last Post: 08-03-2006, 03:16 PM
  3. Folding@Home Cboard team?
    By jverkoey in forum A Brief History of Cprogramming.com
    Replies: 398
    Last Post: 10-11-2005, 09:44 AM
  4. help! fifo read problem
    By judoman in forum C Programming
    Replies: 1
    Last Post: 08-16-2004, 10:19 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21