|
Posted by Dean Arnold on June 25, 2007, 12:14 pm
Please log in for more thread options
Francesco Moi wrote:
>> Which efforts did you make to find out before asking here?
>
> I've been browsing
> http://search.cpan.org/dist/GD/GD.pm
>
> I didn't find out anything about "joining two images".
>
> I've been searching with Google:
> - "join two images" GD::Image perl
> - join images GD::Image perl
>
You have a nomenclature issue: "joining two images" isn't
a very precise description. Presumably you either want to
(a) composite two images, one on top of the other, or (b)
tile the images side by side. If you want (b), see
GD::Tiler. If you want (a), *and* you don't want any alpha
channel effect (ie, semitransparent overlays), then you can
just copy each image into a an output image object. If you
want alpha channels, you may need to consider Imager or
ImageMagick. GD purports to have alpha channel support, but
I've never had much luck getting it to work.
Dean Arnold
Presicient Corp.
|