Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7644939
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T09:48:41+00:00 2026-05-31T09:48:41+00:00

my previous question with source code is here: How to use gif animated image

  • 0

my previous question with source code is here: How to use gif animated image in WP 7

I am using http://imagetools.codeplex.com/
in my animated gif I have 24 frames, but it decodes only some first frames, so I see repetition animation of some(maybe two) frames again and again

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T09:48:42+00:00Added an answer on May 31, 2026 at 9:48 am

    For some gif-files this decoder work, for some other – don’t.

    I downloaded source code of that project and found the code which doesn’t work correctly. It is situated in the ImageTools.IO.Gif\GifDecoder.cs file, the Decode method:

    int nextFlag = stream.ReadByte();
    while (nextFlag != 0)
    {
        //...
    }
    

    But this gif contains the 0 byte right in the middle, so that the decoder stops where it shouldn’t. The solution is to change this flag to -1 so that we are sure that the gif image will be read to the end:

    int nextFlag = stream.ReadByte();
    while (nextFlag != -1)
    {
    }
    

    So you need either to recompile this library or to include the ImageTools.IO.Gif project in the form of source code rather than in the form of dll.

    You can download the sample project here: http://dl.dropbox.com/u/8047386/StackOverflow/TestGif.zip

    But I’m not sure that one can rely on this fix. Anyway I opened the issue at codeplex.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

It is a question build upon the previous question (http://stackoverflow.com/questions/6538448/r-how-to-write-a-loop-to-get-a-matrix). It is different from
As I've mentioned in a previous question , I'm looking into migrating our source
In previous question of mine, someone had meantioned that using Semaphores were expensive in
This question is related to a previous question of mine That's my current code
This question is related to my previous question . The storyline: I have an
This question is a continuation of my previous question here zend models architecture (big
based my previous question asked here: Jquery Filter List DIVs via checkboxes i got
For the purposes of this question, I do not have the ability to use
This question is based off of the same app/source from my previous question which
This is a separate problem lingering from a previous question I asked here on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.