view thesis/comp.pl @ 449:09b7c8dd4365

first chapter done, half of last chapter done.
author Robert McIntyre <rlm@mit.edu>
date Wed, 26 Mar 2014 02:42:01 -0400
parents d3c5f9b70574
children f14fa9e5b67f
line wrap: on
line source
1 #!/bin/perl
3 use List::Flatten;
5 $target = shift(@ARGV);
7 $frames = shift(@ARGV);
9 @numbers = split(/,/, $frames);
10 @images = map {sprintf("$target/%07d.png", $_)} @numbers;
13 $output = $target.".png";
15 @imagemagick_command = flat("montage", @images, "-geometry", "+2+2", $output);
17 print "@imagemagick_command\n";
19 system(@imagemagick_command);