Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: Gif animation play 1st frame once - loop rest?

  1. #1
    Join Date
    Jun 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Gif animation play 1st frame once - loop rest?

    I'm currently using Photoshop but I can download a trial version of anything for this one-off problem.

    I have created a gif animation that is sufficient for my purposes, but it would be much better if I could get it to display the 1st frame just once and then loop the rest of the frames infinitely.

    Does anyone know how to do this and what software is suitable?

    I seem to vaguely remember some years ago using some software that allowed you to specify the frame playback order, but my memory could be somewhat clouded this would be perfect - set order to 1,2,3...n,2...

    If there is a "next frame to display" setting buried within the information for each frame then it must be possible (even if I have to resort to using a hex editor on the gif file itself).

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Hmm... this might be possible with the format, but I don't know and certainly don't know of any programs that will let you do it.
    GIF is really a pretty limited format... not much customization... it doesn't even support more than 256 colors.

    I believe some PNGs support animation, though I'm not sure how many browsers support this. Might want to look and see if that has support for this.

    I see two options aside from finding a hidden trick in the gif format:

    1. Use flash. It's not the best solution always, but the easiest way here.
    2. Use javascript. You could make it display the first frame (a picture) for a bit (maybe while the animation loads, even), then display the looping animation. Might take some complex js for all of that. I wouldn't know.
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Beyond the abilities of GIF animation, I'm afraid.
    I believe some PNGs support animation, though I'm not sure how many browsers support this.
    No browsers support this. Animated PNG (APNG) and its libraries, libapng, are still in an early developmental stage.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  4. #4
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Ah, darn.

    Hmm... yeah, it's on to flash then. Or javascript.
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  5. #5
    Join Date
    Jul 2005
    Location
    UK
    Posts
    159
    Thanks
    15
    Thanked 0 Times in 0 Posts

    Default

    if you have access to .NET, there are controls for slideshows that i've customised to do similar things. you set the frame rate, and specify each image (they can be gifs) in an xml file. you even have the option to choose a transistion, like a fade or dissolve. even if you dont want to use animated images, you can make it look like an animation by playing with the timing.

  6. #6
    Join Date
    Dec 2004
    Posts
    157
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    if you have access to a flash program, you can do this very easily because you can just import the gif you already have set each frame a keyframe and use a script to when it ends to back to frame 2.

  7. #7
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    .NET is the microsoft proprietary version of javascript that only works in IE, right?
    If so, note that using it only works in IE, or just use javascript.

    Flash is the only real solution to complex graphic needs, but comes with it's own downsides.... somewhat limited compatibility, and requires a plugin.
    But, yeah, probably a good choice here.
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  8. #8
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    .NET is the microsoft proprietary version of javascript that only works in IE, right?
    No. That's JScript. .NET has nothing to do with this.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  9. #9
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Is .NET the same as ASP.NET?
    Maybe I'm getting conufsed.

    Either way, what is it?
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  10. #10
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    I've no idea what s/he means by it in this context. .NET is Microsoft's development framework, essentially a clone of Java with most of the good bits, like decent platform independence, removed. It's also a label they attach to some of their services for no other reason than to make them look good.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •