Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to know that file .gif is animated or not ???

How to know that file .gif is animated or not ???

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
3 Posts 3 Posters 19 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Kobe
    wrote on last edited by
    #1

    Hello I have to know that file .gif is animated or not !!! because my library display Gif not support Animated Gif it will crash when open Animated. My idea is do check myself that is Animated or not !!! but I don't know what to do ??? Any Idea ??? Thank you

    C L 2 Replies Last reply
    0
    • K Kobe

      Hello I have to know that file .gif is animated or not !!! because my library display Gif not support Animated Gif it will crash when open Animated. My idea is do check myself that is Animated or not !!! but I don't know what to do ??? Any Idea ??? Thank you

      C Offline
      C Offline
      Cristi Posea
      wrote on last edited by
      #2

      Hi, You can find descriptions of the GIF file format here: http://www.wotsit.org/ (Graphics section) Maybe you should first check if a new version of that library is available (or maybe get another one :) Cheers, Cristi

      1 Reply Last reply
      0
      • K Kobe

        Hello I have to know that file .gif is animated or not !!! because my library display Gif not support Animated Gif it will crash when open Animated. My idea is do check myself that is Animated or not !!! but I don't know what to do ??? Any Idea ??? Thank you

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        If you know how to parse the header section of the GIF file, then look for the 0xFF flag indicating an application-specific extension, and if found and you have a buffer, check for the string "NETSCAPE2.0" -- that's the indication for an animated GIF. ================== The original message was: Hello
        I have to know that file .gif is animated or not !!!
        because my library display Gif not support Animated
        Gif it will crash when open Animated.
        My idea is do check myself that is Animated or not !!!
        but I don't know what to do ???
        Any Idea ???

        Thank you

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups