Enlarging the canvas
Posted: 2007-12-17T02:30:44-07:00
Hello. I'm sorry if this has been answered elsewhere, but I've haven't had any luck finding a solution.
I'm trying to enlarge the canvas of an existing image. It seems that Crop will reduce the canvas, but not enlarge it, even with judicious use of exclamation marks. I don't want to scale the image itself, just the canvas or page size. Along the lines of Photoshop's "Canvas Size" feature.
More specifically, I'm trying to "embolden" an image by compositing it with itself, offset one pixel. This part works:
my $image = Image::Magick->new;
$image->Read($fn);
my $image2 = $image->Clone;
$image->Composite(compose => 'Darken', x => 1, y => 0, image => $image2);
But I'd like to add one pixel to the width of $image so that the final column is duplicated.
Thanks in advance!
Max
I'm trying to enlarge the canvas of an existing image. It seems that Crop will reduce the canvas, but not enlarge it, even with judicious use of exclamation marks. I don't want to scale the image itself, just the canvas or page size. Along the lines of Photoshop's "Canvas Size" feature.
More specifically, I'm trying to "embolden" an image by compositing it with itself, offset one pixel. This part works:
my $image = Image::Magick->new;
$image->Read($fn);
my $image2 = $image->Clone;
$image->Composite(compose => 'Darken', x => 1, y => 0, image => $image2);
But I'd like to add one pixel to the width of $image so that the final column is duplicated.
Thanks in advance!
Max