random walk through fields of musings

Wednesday, December 24, 2008

photos side-by-side aka montages

I seem to do this infrequently enough that I need to make myself a reminder, luckily I wrote a script that is pretty self-explanatory -- in this example it puts two photos side by side (similar method can be used to make 6 2"x2" passport photographs print on a single 4x6 print -- much cheaper than going to one of those passport places).


use strict;
local($|) = 1;

use Image::Magick;
my(@file) = @ARGV;



$rv = $image->Read(@file);
warn "$rv" if $rv;

my($montage) = $image->Montage(
mattecolor=>'#FFFFFF', #does not take?

$rv = $montage->Write('mp.jpg');
warn "$rv" if "$rv";

If you have ImageMagick installed but not the perl bindings, you can do this on the command line too.


Anonymous said...

The first thing I got out of this post was that passport photos no longer have to be on some special heat-sensitive photo paper any more (last time I needed a passport photo was long ago).

Anonymous said...

Or rather, heat-resistant photo paper.

Anonymous said...

There are over 600 telephone service terminals and a complete of over 38,000 telebet accounts. The winning dividend of account holders may at their instructions be routinely transferred to their bank 토토사이트 accounts. Punters may place a bet by oral instructions or by filling a ticket. Projected to open in 2023,Inspire is actively beneath construction but is already dwelling up to as} its name with a vision in contrast to|not like} any round.