Skip to content

Instantly share code, notes, and snippets.

@yukioc
Created May 6, 2012 11:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yukioc/2621784 to your computer and use it in GitHub Desktop.
Save yukioc/2621784 to your computer and use it in GitHub Desktop.
combine 4 pictuers.
#!/usr/local/bin/perl
use strict;
use warnings;
use Image::Magick;
print <<USAGE if $#ARGV==-1;
Usage: montage.pl file..`
USAGE
my $img = new Image::Magick;
$img->Read(@ARGV);
my $mon=$img->Montage(geometry=>'160',tile=>'2x2');
$mon->Write(filename=>'out.jpg');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment