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 5 of 5

Thread: Still Gifs

  1. #1
    Regular Coder
    Join Date
    Mar 2007
    Posts
    357
    Thanks
    46
    Thanked 22 Times in 21 Posts

    Still Gifs

    Ok I have no idea what section I should post this but. Is there any way to only display the first frame of an animated gif? Like... I'm guessing this would be something involving the GD library or would I have to just make an extra file of just the first frame?

  • #2
    Regular Coder BabyJack's Avatar
    Join Date
    Apr 2008
    Location
    Somewhere.
    Posts
    602
    Thanks
    43
    Thanked 6 Times in 6 Posts
    Save the .gif as a .png file.
    If that doesnt work, jpg. BUT NOT A BMP file.
    Enlightenment in Coding
    Validate before Posting | Google is your friend for PC Problems | Make sure you have a doctype

  • #3
    Regular Coder
    Join Date
    Mar 2007
    Posts
    357
    Thanks
    46
    Thanked 22 Times in 21 Posts
    May as well just make a copy of the file, no point. I wanted to only have one file but ok. Thanks anyway.

  • #4
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,538
    Thanks
    8
    Thanked 1,093 Times in 1,084 Posts
    Here's my solution ....

    http://www.catpin.com/arts.php

    Use GD to convert to PNG ...
    That only grabs the first frame.

    View HTML and PHP script is shown.

  • Users who have thanked mlseim for this post:

    flynch01 (04-29-2008)

  • #5
    Regular Coder
    Join Date
    Mar 2007
    Posts
    357
    Thanks
    46
    Thanked 22 Times in 21 Posts
    That's fantastic. Thanks a million. Just what I needed =D.


  •  

    Posting Permissions

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