Re: How to join two images with 'GD::Image'



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.
.



Relevant Pages

  • How to draw sprite with alpha channel?
    ... I have some bitmap objects with alpha channels (loaded from png ... I would like to draw these images ... as sprite in a window. ... with anti-alias effects. ...
    (microsoft.public.win32.programmer.directx.managed)
  • alpha blended treeview icons
    ... Is there any way to get alpha channels to show up right in treeviews? ... images look completely wierd with out it... ... and the manifest and such are ...
    (microsoft.public.dotnet.languages.vb)
  • RE: Microsoft Access storing images?
    ... Since you cannot represent, for example, gif images as ... Cc: Perl Beginners List ... Subject: Re: Microsoft Access storing images? ... storing binary data such as images directly in a database. ...
    (perl.beginners)
  • Re: Dealing with signup bots with a Perl CGI script
    ... Joe wrote: ... > user weird images of characters which they then have to type in a text box ... > 1) It's a Perl system, so anything that can be done backend-wise in Perl ... You could ask a question that a bot could not answer. ...
    (comp.lang.perl.misc)
  • Dealing with signup bots with a Perl CGI script
    ... user weird images of characters which they then have to type in a text box ... the e-mail (particularly for phpBB verification ... ... It's a Perl system, so anything that can be done backend-wise in Perl is ... It cannot involve changes to the actual web server itself. ...
    (comp.lang.perl.misc)