Go Back   CodingForums.com > :: Client side development > Graphics and Multimedia discussions

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-19-2012, 05:32 PM   PM User | #1
transmoderata
New Coder

 
Join Date: May 2012
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
transmoderata is an unknown quantity at this point
making a GIF play once and freeze on last frame?

Question in title. Is it possible? Thanks.
transmoderata is offline   Reply With Quote
Old 07-19-2012, 05:47 PM   PM User | #2
Philip M
Supreme Master coder!

 
Philip M's Avatar
 
Join Date: Jun 2002
Location: London, England
Posts: 17,105
Thanks: 197
Thanked 2,421 Times in 2,399 Posts
Philip M has a spectacular aura aboutPhilip M has a spectacular aura aboutPhilip M has a spectacular aura about
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.
Philip M is offline   Reply With Quote
Old 07-19-2012, 05:48 PM   PM User | #3
transmoderata
New Coder

 
Join Date: May 2012
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
transmoderata is an unknown quantity at this point
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.
transmoderata is offline   Reply With Quote
Old 07-19-2012, 05:49 PM   PM User | #4
Philip M
Supreme Master coder!

 
Philip M's Avatar
 
Join Date: Jun 2002
Location: London, England
Posts: 17,105
Thanks: 197
Thanked 2,421 Times in 2,399 Posts
Philip M has a spectacular aura aboutPhilip M has a spectacular aura aboutPhilip M has a spectacular aura about
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.
Philip M is offline   Reply With Quote
Old 07-20-2012, 12:54 AM   PM User | #5
VIPStephan
The fat guy next door


 
VIPStephan's Avatar
 
Join Date: Jan 2006
Location: Halle (Saale), Germany
Posts: 7,705
Thanks: 5
Thanked 875 Times in 850 Posts
VIPStephan is a jewel in the roughVIPStephan is a jewel in the roughVIPStephan is a jewel in the rough
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.
__________________
Don’t click this link!
VIPStephan is offline   Reply With Quote
Old 07-20-2012, 05:52 AM   PM User | #6
Len Whistler
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
Len Whistler is on a distinguished road
Try using GIMP ....... When you save the animation uncheck the loop box. I'm using GIMP 2.6.11


-----
__________________
Leonard Whistler
Len Whistler is offline   Reply With Quote
Old 07-20-2012, 07:52 AM   PM User | #7
Philip M
Supreme Master coder!

 
Philip M's Avatar
 
Join Date: Jun 2002
Location: London, England
Posts: 17,105
Thanks: 197
Thanked 2,421 Times in 2,399 Posts
Philip M has a spectacular aura aboutPhilip M has a spectacular aura aboutPhilip M has a spectacular aura about
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.
Philip M is offline   Reply With Quote
Old 07-20-2012, 06:58 PM   PM User | #8
Major Payne
Regular Coder

 
Join Date: Aug 2005
Location: MS
Posts: 745
Thanks: 7
Thanked 65 Times in 63 Posts
Major Payne is an unknown quantity at this point
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☠ ☠
Major Payne is offline   Reply With Quote
Old 07-20-2012, 07:58 PM   PM User | #9
Len Whistler
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
Len Whistler is on a distinguished road
This animated GIF is generated with GIMP, and the loop box unchecked.





----
__________________
Leonard Whistler
Len Whistler is offline   Reply With Quote
Old 07-20-2012, 11:00 PM   PM User | #10
Major Payne
Regular Coder

 
Join Date: Aug 2005
Location: MS
Posts: 745
Thanks: 7
Thanked 65 Times in 63 Posts
Major Payne is an unknown quantity at this point
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☠ ☠
Major Payne is offline   Reply With Quote
Old 07-20-2012, 11:30 PM   PM User | #11
Len Whistler
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
Len Whistler is on a distinguished road
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
Len Whistler is offline   Reply With Quote
Old 07-21-2012, 12:18 AM   PM User | #12
Major Payne
Regular Coder

 
Join Date: Aug 2005
Location: MS
Posts: 745
Thanks: 7
Thanked 65 Times in 63 Posts
Major Payne is an unknown quantity at this point
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☠ ☠
Major Payne is offline   Reply With Quote
Old 07-23-2012, 11:16 AM   PM User | #13
mcharalambous
New to the CF scene

 
Join Date: Jul 2012
Posts: 5
Thanks: 1
Thanked 1 Time in 1 Post
mcharalambous is an unknown quantity at this point
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...
mcharalambous is offline   Reply With Quote
Old 07-27-2012, 05:06 PM   PM User | #14
D-Eagle
New to the CF scene

 
Join Date: Jul 2012
Location: World Wide Web
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
D-Eagle is an unknown quantity at this point
Try using the gif editor in photoscape: http://www.photoscape.org/ps/main/download.php
D-Eagle is offline   Reply With Quote
Old 08-25-2012, 04:04 PM   PM User | #15
Slushy
New to the CF scene

 
Join Date: Aug 2012
Location: Austin, TX
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Slushy is an unknown quantity at this point
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.
Slushy is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:02 AM.


Advertisement
Log in to turn off these ads.