Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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