This thread was helpful for me as I struggled with the same issue. The solution works great for me on PNGs, but not GIFs, which still Flatten with black as a background rather than white. If I resave the GIF as a PNG, it works, so format is the only difference.
Is there a different approach to ...
Search found 3 matches
- 2011-01-23T15:19:11-07:00
- Forum: PerlMagick
- Topic: Error: Flatten(ref)
- Replies: 8
- Views: 35874
- 2007-12-23T18:38:49-07:00
- Forum: PerlMagick
- Topic: Enlarging the canvas
- Replies: 4
- Views: 15907
Re: Enlarging the canvas
You want Extent.
I agree. Unfortunately, $image->Extent gives me:
[error] Can't locate auto/Image/Magick/Extent.al in @INC (@INC contains: /home/max /etc/perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local ...
I agree. Unfortunately, $image->Extent gives me:
[error] Can't locate auto/Image/Magick/Extent.al in @INC (@INC contains: /home/max /etc/perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local ...
- 2007-12-17T02:30:44-07:00
- Forum: PerlMagick
- Topic: Enlarging the canvas
- Replies: 4
- Views: 15907
Enlarging the canvas
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 ...
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 ...