Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 15 of 15
  1. #1
    New Coder
    Join Date
    May 2012
    Posts
    42
    Thanks
    0
    Thanked 0 Times in 0 Posts

    making a GIF play once and freeze on last frame?

    Question in title. Is it possible? Thanks.

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,910
    Thanks
    203
    Thanked 2,531 Times in 2,509 Posts
    Quote Originally Posted by transmoderata View Post
    Question in title. Is it possible? Thanks.
    No, I don't think so. But you can replace the animated .gif image after a calculated perriod of time with another static image which is the last frame.

    All advice is supplied packaged by intellectual weight, and not by volume. Contents may settle slightly in transit.

    All the code given in this post has been tested and is intended to address the question asked.
    Unless stated otherwise it is not just a demonstration.

  • #3
    New Coder
    Join Date
    May 2012
    Posts
    42
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Philip M View Post
    No, I don't think so. But you can replace the animated .gif image after a calculated perriod of time with another static image which is the last frame.

    All advice is supplied packaged by intellectual weight, and not by volume. Contents may settle slightly in transit.
    Okay, I know how to do that. Just seeing if there was a more practical way. Thanks.

  • #4
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,910
    Thanks
    203
    Thanked 2,531 Times in 2,509 Posts
    Quote Originally Posted by transmoderata View Post
    Question in title. Is it possible? Thanks.
    Most animation programs include an option to loop or not loop.


    All advice is supplied packaged by intellectual weight, and not by volume. Contents may settle slightly in transit.

    All the code given in this post has been tested and is intended to address the question asked.
    Unless stated otherwise it is not just a demonstration.

  • #5
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,624
    Thanks
    6
    Thanked 1,001 Times in 974 Posts
    Quote Originally Posted by Philip M View Post
    No, I don't think so.
    I think it is possible. Haven’t done it yet but I seem to remember that in Adobe Fireworks you can create a GIF that runs just once.

  • #6
    Senior Coder Len Whistler's Avatar
    Join Date
    Jul 2002
    Location
    Vancouver, BC Canada
    Posts
    1,323
    Thanks
    26
    Thanked 100 Times in 100 Posts
    Try using GIMP ....... When you save the animation uncheck the loop box. I'm using GIMP 2.6.11


    -----
    Leonard Whistler

  • #7
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,910
    Thanks
    203
    Thanked 2,531 Times in 2,509 Posts
    Quote Originally Posted by VIPStephan View Post
    I think it is possible. Haven’t done it yet but I seem to remember that in Adobe Fireworks you can create a GIF that runs just once.
    Yes, initially I was thinking of an animated .gif which was not created by the OP. But I then recalled that most or all gif animation programs give the option of not looping, although that naturally applies only to animations you create yourself.

    All the code given in this post has been tested and is intended to address the question asked.
    Unless stated otherwise it is not just a demonstration.

  • #8
    Regular Coder
    Join Date
    Aug 2005
    Location
    MS
    Posts
    831
    Thanks
    10
    Thanked 79 Times in 77 Posts
    Freezing on the last frame is the key here. You could try making the first and last frame identical, but set the first frame with a very, very short display time which, hopefully, would not be noticed. Once it looped through once, it should stop on first frame again. Haven't tried this, but a little tweaking ought to get it right.
    ☠ ☠RON☠ ☠

  • #9
    Senior Coder Len Whistler's Avatar
    Join Date
    Jul 2002
    Location
    Vancouver, BC Canada
    Posts
    1,323
    Thanks
    26
    Thanked 100 Times in 100 Posts
    This animated GIF is generated with GIMP, and the loop box unchecked.





    ----
    Leonard Whistler

  • #10
    Regular Coder
    Join Date
    Aug 2005
    Location
    MS
    Posts
    831
    Thanks
    10
    Thanked 79 Times in 77 Posts
    I think the OP wants the GIF to stop on the last frame after one play. Most start and end on the first frame.

    Or, am I misunderstanding the question, too?
    ☠ ☠RON☠ ☠

  • #11
    Senior Coder Len Whistler's Avatar
    Join Date
    Jul 2002
    Location
    Vancouver, BC Canada
    Posts
    1,323
    Thanks
    26
    Thanked 100 Times in 100 Posts
    Quote Originally Posted by Major Payne View Post
    I think the OP wants the GIF to stop on the last frame after one play. Most start and end on the first frame.

    The GIMP generated GIF animation stops on the last frame after one play.



    --
    Leonard Whistler

  • #12
    Regular Coder
    Join Date
    Aug 2005
    Location
    MS
    Posts
    831
    Thanks
    10
    Thanked 79 Times in 77 Posts
    Quote Originally Posted by Len Whistler View Post
    The GIMP generated GIF animation stops on the last frame after one play.



    --
    Then any good animation editor other than GIMP should be setting the animation the same way when set for one loop.
    ☠ ☠RON☠ ☠

  • #13
    New to the CF scene
    Join Date
    Jul 2012
    Posts
    5
    Thanks
    1
    Thanked 1 Time in 1 Post
    Have you thought of just setting the last frame to like, 999999 seconds? Haven't used an animator in a long time, but you could do that a few years back on old photoshop...

  • #14
    New to the CF scene
    Join Date
    Jul 2012
    Location
    World Wide Web
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Try using the gif editor in photoscape: http://www.photoscape.org/ps/main/download.php

  • #15
    New to the CF scene
    Join Date
    Aug 2012
    Location
    Austin, TX
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    This is very easy. If you are using photoshop, just under the timeline there should be a box with an available dropdown and the text says "forever". Click that and the dropdown box should open up and then just click "once", then it should only go through the animation one time.


  •  

    Posting Permissions

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