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



On Mon, 25 Jun 2007 10:32:09 -0000,
Francesco Moi <francescomoi@xxxxxxx> 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".

You seem to be making the assumption that "joining two images" is
somehow standard graphics terminology. It isn't as far as I know. I am
assuming that to "join" two images, to you, means displaying them side
by side?

The above link has the complete documentation for GD::Image. What you're
looking for, if the above assumption is right, is the copy() method.

Create a new image, large enough to hold the 'joined' result. Use the
copy() method to put the old images in the appropriate place. Maybe you
need copyMerge if you want them to overlap.

For more complex combination methods between images, you might want to
look at Image::Magick or maybe Imager.

Martien
--
|
Martien Verbruggen | The problem with sharks is that they are too
| large to get to the shallow end of the gene
| pool. -- Scott R. Godin
.



Relevant Pages

  • Re: Whats the deal Bill?
    ... >affilates and the next you are joining them. ... >http://www.kruse.co.uk/wall-tapestries.htm Why on earth did you put those ... >say I think you got a little much on the links and images there for one ...
    (alt.internet.search-engines)
  • Re: Whats the deal Bill?
    ... >>>affilates and the next you are joining them. ... >>>http://www.kruse.co.uk/wall-tapestries.htm Why on earth did you put those ... >>>say I think you got a little much on the links and images there for one ... >Why not at least have thumbnails, and links or divide them in half on 2 ...
    (alt.internet.search-engines)
  • Whats the deal Bill?
    ... affilates and the next you are joining them. ... http://www.kruse.co.uk/wall-tapestries.htm Why on earth did you put those ... say I think you got a little much on the links and images there for one ...
    (alt.internet.search-engines)
  • Re: Critique web sites
    ... I'm thinking of joining one of those web sites where you can upload some images and other people can offer comments on them. ...
    (uk.rec.photo.misc)