perl - How do I "read" from an existing image object instead of a file path with PerlMagick? -
the following code generates 300x100 image using 100x100 tile source image:
for (my $i = 0; $i < 3; $i++) { $image->read("filepath/100x100.png"); } $result = $image->montage(geometry=>'100x100',tile=>'3x1'); how reach same result while reading once disk?
it's not obvious docs, can add clones image sequence this:
$image->read("filepath/100x100.png"); $image->[1] = $image->[0]->clone(); $image->[2] = $image->[0]->clone(); $result = $image->montage(geometry=>'100x100',tile=>'3x1');
Comments
Post a Comment