Jump to content

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


harry-tom

Recommended Posts

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
https://forums.phpfreaks.com/topic/125127-how-to-merge-images/#findComment-646712
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
https://forums.phpfreaks.com/topic/125127-how-to-merge-images/#findComment-646723
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
https://forums.phpfreaks.com/topic/125127-how-to-merge-images/#findComment-646795
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
https://forums.phpfreaks.com/topic/125127-how-to-merge-images/#findComment-646949
Share on other sites

  • 2 weeks later...

Hi, you can't merge gif animate with imagecopymerge command

because gif animate is a image have multiple frame (multiple image merge).

 

You can use Gif Split and Gif Merge function to apply with this case.

 

see more information at here

http://www.myfineday.com/2008/10/02/php-how-to-merge-gif-animate/

 

Good luck.  :D

Link to comment
https://forums.phpfreaks.com/topic/125127-how-to-merge-images/#findComment-655367
Share on other sites

Archived

This topic is now archived and is closed to further replies.

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