how to create gif animation from a stack of jpgs

前端 未结 5 1858
萌比男神i
萌比男神i 2020-12-25 15:18

I have around 200 jpg images. I need to stack them so that i can convert them into a simple animated gif image. Are there any free tools available to do that job? My os is w

5条回答
  •  醉梦人生
    2020-12-25 15:45

    ImageJ and FIJI provide a powerful GUI for doing this is (FIJI is a re-package of ImageJ that also includes some widely used plugins). These powerful (but free!) programs may be overkill, but depending on your needs this may be the way to go, since this is a somewhat common and crucial task for biologists.

    Also FIJI can open a large array of different image types, can save to GIF or AVI, and it is very easily scriptable (insternally with in Python or Java) for automating custom tasks etc.

    Step-by-step instructions (from Here and Here) are as follows:

    1. Put your images in a folder, and name them in sequence (eg. make sure they open alphabetically in the right order, perhaps by adding the desired frame numbers to the start of the filenames). (On MacOS, this automator action could help)
    2. In FIJI, Select `File > Import > Image Sequence..."
    3. Choose your folder, and then any options (eg. scaling the images)
    4. Preview the video with the Play button in the resulting window's corner.
    5. To change the frame rate, choose Image > Stacks > Animation > Animation Options...
    6. Select File > Save As > Animated GIF... or AVI... and you're done.

      For GIF you can choose the delay between frames (ie. frame rate), and looping option. For AVI you can choose the frame rate.

提交回复
热议问题