Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
How can I add an image next to another
Old 02-24-2009, 04:25 PM How can I add an image next to another
Experienced Talker

Posts: 33
Name: Joseph
Trades: 0
I want to put two ore more images together (in a line) using php. How can I do that?
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
xmsmmgrs is offline
Reply With Quote
View Public Profile Visit xmsmmgrs's homepage!
 
 
Register now for full access!
Old 02-24-2009, 04:39 PM Re: How can I add an image next to another
Skilled Talker

Posts: 79
Location: Devon, England
Trades: 0
You don't need php to do this. In fact this is really simple html.
HTML Code:
<img src="someImage.jpg" alt="" /><img src="someImage2.jpg" alt="" />
__________________
Please add to my Talkupation if I was helpful. Thanks.


Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
paaaaaaaaaa is offline
Reply With Quote
View Public Profile Visit paaaaaaaaaa's homepage!
 
Old 02-24-2009, 04:40 PM Re: How can I add an image next to another
Experienced Talker

Posts: 33
Name: Joseph
Trades: 0
That would be extremely easy, but I need to make it a big image. I was playing with imagecopymerge but could not find a way to put images one next to another. I will have 5 images to put one next to another and one under these.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
xmsmmgrs is offline
Reply With Quote
View Public Profile Visit xmsmmgrs's homepage!
 
Old 02-24-2009, 04:43 PM Re: How can I add an image next to another
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
JAMISONTUNES
Posts: 2,918
Name: Keith Marshall
Location: Connecticut
Trades: 0
Why do you exactly need the combined images to become one image. Is there benefits with the single image rather than the multiple images via html?
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Old 02-24-2009, 05:00 PM Re: How can I add an image next to another
Insensus's Avatar
Ultra Talker

Posts: 487
Name: Mark Stegeman
Location: Netherlands, Europe
Trades: 0
Are the images the same height?

If so:
PHP Code:
function appendRight($in){
  
$total 0;
  foreach(
$in as $img){ $total += imagesx($img); }
  
$out imagecreatetruecolor($total,imagesy($in[0]));

  
$x 0;
  foreach(
$in as $img){
    
imagecopy($out,$img,$x,0,0,0,imagesx($img),imagesy($img));
    
$x += imagesx($img);
  }

  return 
$out;

$in being an array with imagehandlers.
__________________
<?php ($helpfull>0)?$talkupation++ : '';?>
Insensus is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to How can I add an image next to another
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.14952 seconds with 12 queries