USA Linux Users Group Forum Index
Log in Register FAQ Memberlist Search USA Linux Users Group Forum Index Album

Program to stitch static images into an animation...

 
Post new topic   Reply to topic   printer-friendly view    USA Linux Users Group Forum Index » OTHER
View previous topic :: View next topic  
Author Message
Ephemeral
Advanced Member


Joined: 26 Jun 2024
Posts: 671
Location: UK

PostPosted: Tue Aug 26, 2024 11:15 am    Post subject: Program to stitch static images into an animation... Reply with quote

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
View user's profile Send private message
jester
Sr. Member


Joined: 19 Apr 2024
Posts: 1166

PostPosted: Tue Aug 26, 2024 12:07 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
crouse
Site Admin


Joined: 17 Apr 2024
Posts: 11833
Location: Iowa

PostPosted: Tue Aug 26, 2024 1:06 pm    Post subject: Reply with quote

http://www.cinepaint.org/

http://www.nuxified.org/article/create_video_animations_with_inkscape_imagemagick_and_ffmpeg



_________________
Veronica - Arch Linux 64-bit -- Kernel 2.6.33.4-1
Archie/Jughead - Arch Linux 32-bit -- Kernel 2.6.33.4-1
Betty/Reggie - Arch Linux (VBox) 32-bit -- Kernel 2.6.33.4-1
BumbleBee - OpenSolaris-SunOS 5.11
Back to top
View user's profile Send private message Visit poster's website AIM Address
Lord.DragonFly.of.Dawn
Advanced Member


Joined: 18 Jul 2024
Posts: 607
Location: South Portland, Maine, USA, Earth, Sol System

PostPosted: Tue Aug 26, 2024 5:27 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Ephemeral
Advanced Member


Joined: 26 Jun 2024
Posts: 671
Location: UK

PostPosted: Tue Aug 26, 2024 10:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
Lord.DragonFly.of.Dawn
Advanced Member


Joined: 18 Jul 2024
Posts: 607
Location: South Portland, Maine, USA, Earth, Sol System

PostPosted: Tue Aug 26, 2024 10:52 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Ephemeral
Advanced Member


Joined: 26 Jun 2024
Posts: 671
Location: UK

PostPosted: Wed Aug 27, 2024 5:02 pm    Post subject: Reply with quote

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
View user's profile Send private message
rumbarg
Jr. Member


Joined: 06 Jun 2024
Posts: 69
Location: Houston, TX

PostPosted: Wed Aug 27, 2024 7:17 pm    Post subject: Reply with quote

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 2024-01 - Χάος
Back to top
View user's profile Send private message
Lord.DragonFly.of.Dawn
Advanced Member


Joined: 18 Jul 2024
Posts: 607
Location: South Portland, Maine, USA, Earth, Sol System

PostPosted: Thu Aug 28, 2024 3:15 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Lord.DragonFly.of.Dawn
Advanced Member


Joined: 18 Jul 2024
Posts: 607
Location: South Portland, Maine, USA, Earth, Sol System

PostPosted: Thu Aug 28, 2024 3:24 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
rumbarg
Jr. Member


Joined: 06 Jun 2024
Posts: 69
Location: Houston, TX

PostPosted: Thu Aug 28, 2024 8:45 pm    Post subject: Reply with quote

Absolutely wonderful - worked the first time ( even typing rather than cut & paste! ) Thanks for the update and the link.

regards,

rumbarg



_________________
sidux sidux 2024-01 - Χάος
Back to top
View user's profile Send private message
Ephemeral
Advanced Member


Joined: 26 Jun 2024
Posts: 671
Location: UK

PostPosted: Fri Aug 29, 2024 7:37 pm    Post subject: Reply with quote

i made the first one today...

need to fiddle with the delay...

im not sure ive got can get enough images for my application (which is doing my head in but this is my problem Evil or Very Mad )

script works fine thanks Cool


Back to top
View user's profile Send private message
Lord.DragonFly.of.Dawn
Advanced Member


Joined: 18 Jul 2024
Posts: 607
Location: South Portland, Maine, USA, Earth, Sol System

PostPosted: Fri Aug 29, 2024 8:53 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    USA Linux Users Group Forum Index » OTHER All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All content © 2024-2009 - Usa Linux Users Group
This forum is powered by phpBB. © 2024-2009 phpBB Group
Theme created by phpBBStyles.com and modified by Crouse