Results 1 to 9 of 9

Thread: Make an animated GIF out of many separate PNG files?

  1. #1
    Join Date
    Jan 2008
    Location
    Whenever the food is.
    Beans
    1,203
    Distro
    Kubuntu

    Make an animated GIF out of many separate PNG files?

    I got plenty of PNG's called "somefile 0001, somefile 0002, somefile 0003".

    Any software for combining the frames into one neat GIF?
    Keyboard not found!

    Press any key to continue...

  2. #2
    Join Date
    Feb 2009
    Location
    Dallas
    Beans
    1,355
    Distro
    Ubuntu Gnome 14.04 Trusty Tahr

    Re: Make an animated GIF out of many separate PNG files?

    GIF is probably not the best way to view a sequence of PNG files. The PNG files are usually 8-bits per channel color with a possible 16,777,216 colors and GIF supports a maximum of 256 colors per image (from within 8-bit color range).

    Putting the PNG sequence into a Flash document or compressed video would be a better way to go. FFMPEG can help to get the image sequence into a video. Cheers!

  3. #3
    Join Date
    Sep 2006
    Beans
    3,529

    Re: Make an animated GIF out of many separate PNG files?

    ImageMagick would definately be able to do this (this is an untested command):
    Code:
    convert -delay 10 -loop 0 inputfiles*.png animaion.gif
    Examples of ImageMagick Usage

  4. #4
    Join Date
    Jan 2008
    Location
    Whenever the food is.
    Beans
    1,203
    Distro
    Kubuntu

    Re: Make an animated GIF out of many separate PNG files?

    The PNG's are ripped from a very old game which uses 256 color palette so the image quality stays the same.

    Thanks man Now I have plenty of cool smileys for IM and animated avatars for forums.


    But how can I apply a color key for the frames? I don't like this blue background:



    PS. RED ALERT 2 IS THE BEST GAME EVER!
    Last edited by crazyfuturamanoob; April 22nd, 2009 at 08:19 PM.
    Keyboard not found!

    Press any key to continue...

  5. #5
    Join Date
    Dec 2007
    Beans
    485
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Make an animated GIF out of many separate PNG files?

    easiest way I have ever made gif's besides flash is adobe image ready comes installed with photochop you can put the images in a folder then open the folder as frames so each image becomes a frame and then you can choose the time to delay then save as a .gif

    not sure the best open-source solution tho I'll have to look into that image magik

  6. #6
    Join Date
    Jan 2008
    Location
    Whenever the food is.
    Beans
    1,203
    Distro
    Kubuntu

    Re: Make an animated GIF out of many separate PNG files?

    I first made an animated gif with your command, then I tried to remove the blue background with this:
    Code:
    convert wrench.gif -alpha set -channel RGBA -fill none -opaque blue wrench2.gif
    Result:


    What happened? What's wrong with that? I want new frames to replace the old ones, not merge!



    Edit: Solved, correct colorkeying command:
    Code:
    convert -dispose previous wrench.gif -alpha set -channel RGBA -fill none -opaque blue wrench2.gif
    Last edited by crazyfuturamanoob; April 23rd, 2009 at 02:30 PM.
    Keyboard not found!

    Press any key to continue...

  7. #7
    Join Date
    Jan 2007
    Beans
    552

    Re: Make an animated GIF out of many separate PNG files?

    Fantastic!

    We should start an ubuntu surf club, e.g.

    http://nastynets.com/

  8. #8
    Join Date
    Jan 2009
    Location
    Nelspruit, South Africa
    Beans
    1,415
    Distro
    Ubuntu Development Release

    Re: Make an animated GIF out of many separate PNG files?

    Wow I always wanted to remove the bg color in my pics
    Monitor: LG flatron w1954s 22", mobo: G31-m7 series, CPU: Intel LGA 775 Intel core duo 2 2,66GHZ, RAM: 3GB, GPU: ATI Radeom HD 2400, Storage: 500GB SATA and 80GB IDE, Windows 7 ultimate and Ubuntu

  9. #9
    Join Date
    Oct 2005
    Location
    Davao, Philippines
    Beans
    4,831

    Re: Make an animated GIF out of many separate PNG files?

    you might also want animated PNGs (APNGs)

    much smoother imho

    http://people.mozilla.com/~dolske/apng/demo.html

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
  •