View previous topic :: View next topic |
Author |
Message |
Ephemeral Advanced Member
Joined: 26 Jun 2025 Posts: 671 Location: UK
|
Posted: Tue Aug 26, 2025 11:15 am Post subject: Program to stitch static images into an animation... |
|
|
I need a program to take a series of images and make an animation from them. These images are all the same size and format.
Any ideas?
thanks
|
|
Back to top |
|
jester Sr. Member

Joined: 19 Apr 2025 Posts: 1166
|
Posted: Tue Aug 26, 2025 12:07 pm Post subject: |
|
|
The GIMP should be able to help you out there
_________________ Arch64 :: Funtoo64 :: FreeBSD-8.0 :: OSX-10.4.11 (PPC)
Testing: Fedora12_x86-64 :: Ubuntu-10.04-LTS_x86-64
|
|
Back to top |
|
crouse Site Admin

Joined: 17 Apr 2025 Posts: 11833 Location: Iowa
|
|
Back to top |
|
Lord.DragonFly.of.Dawn Advanced Member

Joined: 18 Jul 2025 Posts: 607 Location: South Portland, Maine, USA, Earth, Sol System
|
Posted: Tue Aug 26, 2025 5:27 pm Post subject: |
|
|
Use imagemagick.
Code: | animate img1.png img2.jpg img3.gif -loop 0 -delay 200 animation.gif |
Explanantion:
animate is the command, part of the imagemagick family.
img?.??? are input images. these can be any type that imagemagick supports.
-loop 0 means to loop the animation forever!
-delay 200 means to pause for two tenths of a second after every frame
animate.gif is the output name. You can use gif, mpeg, mjpeg, and avi for output formats.
very nice for creating gifs through automation. :-p
_________________ ArchLinux x86_64 - Custom Built Desktop
ArchLinux x86_64 - Compaq CQ50 Laptop
ArchLinux i686 - Acer Aspire One Netbook
ArchLinux i686 - Dell Presario ze2000 (w/ shattered LCD)
PuppyLinux, CloneZilla, PartedMagic, DBAN - rescue thumbdrives
Windows 7 (x86_64 desktop alternate boot)
|
|
Back to top |
|
Ephemeral Advanced Member
Joined: 26 Jun 2025 Posts: 671 Location: UK
|
Posted: Tue Aug 26, 2025 10:21 pm Post subject: |
|
|
thanks for the speedy responses...
DragonFly that looks nifty
anyway of saying
img1 to img30 in one fell swoop?
i might be doing this a few time with varying numbers of images .. but usually probably > 20 images
|
|
Back to top |
|
Lord.DragonFly.of.Dawn Advanced Member

Joined: 18 Jul 2025 Posts: 607 Location: South Portland, Maine, USA, Earth, Sol System
|
Posted: Tue Aug 26, 2025 10:52 pm Post subject: |
|
|
if you have a consistant numbering sceme yes
BASH SUBSTITUTION TO THE RESCUE!
Code: | animate $(ls img???.png) -loop 0 -delay 200 animation.gif |
the $() means "stick the output of the contained command in here.
_________________ ArchLinux x86_64 - Custom Built Desktop
ArchLinux x86_64 - Compaq CQ50 Laptop
ArchLinux i686 - Acer Aspire One Netbook
ArchLinux i686 - Dell Presario ze2000 (w/ shattered LCD)
PuppyLinux, CloneZilla, PartedMagic, DBAN - rescue thumbdrives
Windows 7 (x86_64 desktop alternate boot)
|
|
Back to top |
|
Ephemeral Advanced Member
Joined: 26 Jun 2025 Posts: 671 Location: UK
|
Posted: Wed Aug 27, 2025 5:02 pm Post subject: |
|
|
Matlab has fried my brain today... so im feeling a wee bit slow
but here are the image names
OutputImage.png
OutputImage1.png
OutputImage2.png
OutputImage3.png
....
OutputImage15.png
I had problems earlier but ran it on one file (so no animation) was dealing with eps and couldnt get the bash code to work right.. changed to png.. no need for the data to be in eps
Oh also where does it save the animation.gif ...?
thanks
|
|
Back to top |
|
rumbarg Jr. Member
Joined: 06 Jun 2025 Posts: 69 Location: Houston, TX
|
Posted: Wed Aug 27, 2025 7:17 pm Post subject: |
|
|
I tried the bash version of animate and have a couple of questions (not urgent, just curious...)
The images did pop up and cycle after I removed the -loop 0 section (unrecognized option -loop ).
Changing the delay value didn't seem to change the actual delay.
Didn't write the file ( unable to open image `animation.png )
Changed the name of an unneeded file to animation.png, ran it again, and saw no change in the file when opening it.
Are these likely due to an older version of imagemagic?
regards,
rumbarg
_________________ sidux sidux 2025-01 - Χάος
|
|
Back to top |
|
Lord.DragonFly.of.Dawn Advanced Member

Joined: 18 Jul 2025 Posts: 607 Location: South Portland, Maine, USA, Earth, Sol System
|
Posted: Thu Aug 28, 2025 3:15 am Post subject: |
|
|
ehhh.... my bad. i forgot to test the command i gave.
first off the command is CONVERT not ANIMATE (thats just a stupid mistake on my part....)
second -delay only effects the images read in AFTER the option appears, so in my original command the option had no effect since the images had already been read in.
Try this. (i tested it this time)
Code: | convert -loop 0 -delay 200 $(ls -v OutputImage*.png ) animation.gif |
_________________ ArchLinux x86_64 - Custom Built Desktop
ArchLinux x86_64 - Compaq CQ50 Laptop
ArchLinux i686 - Acer Aspire One Netbook
ArchLinux i686 - Dell Presario ze2000 (w/ shattered LCD)
PuppyLinux, CloneZilla, PartedMagic, DBAN - rescue thumbdrives
Windows 7 (x86_64 desktop alternate boot)
|
|
Back to top |
|
Lord.DragonFly.of.Dawn Advanced Member

Joined: 18 Jul 2025 Posts: 607 Location: South Portland, Maine, USA, Earth, Sol System
|
Posted: Thu Aug 28, 2025 3:24 am Post subject: |
|
|
And a wep page telling you all you ever needed to know (and more) about creating animations with imagemagick
http://www.imagemagick.org/Usage/anim_basics/
_________________ ArchLinux x86_64 - Custom Built Desktop
ArchLinux x86_64 - Compaq CQ50 Laptop
ArchLinux i686 - Acer Aspire One Netbook
ArchLinux i686 - Dell Presario ze2000 (w/ shattered LCD)
PuppyLinux, CloneZilla, PartedMagic, DBAN - rescue thumbdrives
Windows 7 (x86_64 desktop alternate boot)
|
|
Back to top |
|
rumbarg Jr. Member
Joined: 06 Jun 2025 Posts: 69 Location: Houston, TX
|
Posted: Thu Aug 28, 2025 8:45 pm Post subject: |
|
|
Absolutely wonderful - worked the first time ( even typing rather than cut & paste! ) Thanks for the update and the link.
regards,
rumbarg
_________________ sidux sidux 2025-01 - Χάος
|
|
Back to top |
|
Ephemeral Advanced Member
Joined: 26 Jun 2025 Posts: 671 Location: UK
|
|
Back to top |
|
Lord.DragonFly.of.Dawn Advanced Member

Joined: 18 Jul 2025 Posts: 607 Location: South Portland, Maine, USA, Earth, Sol System
|
Posted: Fri Aug 29, 2025 8:53 pm Post subject: |
|
|
Not a problem.
Always glad to be a help.
-DragonFly
_________________ ArchLinux x86_64 - Custom Built Desktop
ArchLinux x86_64 - Compaq CQ50 Laptop
ArchLinux i686 - Acer Aspire One Netbook
ArchLinux i686 - Dell Presario ze2000 (w/ shattered LCD)
PuppyLinux, CloneZilla, PartedMagic, DBAN - rescue thumbdrives
Windows 7 (x86_64 desktop alternate boot)
|
|
Back to top |
|
|