Jump to content

How to merge images ? !!!!!!!!!


harry-tom

Recommended Posts

Hello,

this is my first sharing and i really need help  ???

 

i have a php script that echo gif images "it is a letters" where each letter show in one image

 

i need to merge all letters "images"

to appear for users as one word "one image"

 

images are gif

 

-----------------

Link to comment
Share on other sites

gd mate php function

 

famous example for ya

 

img.php

<?php
        header ("Content-type: image/png");
        $img_handle = ImageCreate (230, 20) or die ("Cannot Create image");
        $back_color = ImageColorAllocate ($img_handle, 0, 10, 10);
        $txt_color = ImageColorAllocate ($img_handle, 233, 114, 191);
        ImageString ($img_handle, 31, 5, 5,  "My first Program with GD", $txt_color);
        ImagePng ($img_handle);
    ?> 

 

 

link is...

 

<img src="img.php" />

Link to comment
Share on other sites

gd mate php function

 

famous example for ya

 

img.php

<?php
        header ("Content-type: image/png");
        $img_handle = ImageCreate (230, 20) or die ("Cannot Create image");
        $back_color = ImageColorAllocate ($img_handle, 0, 10, 10);
        $txt_color = ImageColorAllocate ($img_handle, 233, 114, 191);
        ImageString ($img_handle, 31, 5, 5,  "My first Program with GD", $txt_color);
        ImagePng ($img_handle);
    ?> 

 

 

link is...

 

<img src="img.php" />

 

thanks

but this not answer for my question

this code show image with a text

 

but my question is

how can i merge many images to appear as on image

like this

85620103oi2.gif54829948wq1.gif85620103oi2.gif

i want the three images to be on image

any on understand me >>>>>>>>>>>>>>>>>>>>>

 

 

 

 

Link to comment
Share on other sites

why not add three images here mate... were the words were..............

 

<?php
        header ("Content-type: image/png");
        $img_handle = ImageCreate (230, 20) or die ("Cannot Create image");
        $back_color = ImageColorAllocate ($img_handle, 0, 10, 10);
        $txt_color = ImageColorAllocate ($img_handle, 233, 114, 191);
        ImageString ($img_handle, 31, 5, 5,  "<img src='img1.png' /> <img src='img2.png' /> <img src='img3.png' />", $txt_color);
        ImagePng ($img_handle);
    ?> 

Link to comment
Share on other sites

why not add three images here mate... were the words were..............

 

<?php
        header ("Content-type: image/png");
        $img_handle = ImageCreate (230, 20) or die ("Cannot Create image");
        $back_color = ImageColorAllocate ($img_handle, 0, 10, 10);
        $txt_color = ImageColorAllocate ($img_handle, 233, 114, 191);
        ImageString ($img_handle, 31, 5, 5,  "<img src='img1.png' /> <img src='img2.png' /> <img src='img3.png' />", $txt_color);
        ImagePng ($img_handle);
    ?> 

 

It is not give me picture

it give a black rectangle

and when i save the pic

it saved as php not as png

 

Link to comment
Share on other sites

  • 2 weeks later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.