473,387 Members | 1,493 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Import images to a new image ?

1
[PHP]<?
header("Content-type: image/jpeg");
$im = @imagecreatefromjpeg("test.jpg");
$im1 = @imagecreatefromjpeg("test1.jpg");
if (!$im)
$im = imagecreatetruecolor(150, 30);
$bgc = imagecolorallocate($im, 255, 255, 255);
$tc = imagecolorallocate($im, 0, 0, 0);
imagefilledrectangle($im, 0, 0, 150, 30, $bgc);
imagestring($im, 1, 5, 5, "Error loading $imgname", $tc);
}
imagejpeg($im);
imagedestroy($im);
?>[/PHP]

I have the two "test.jpg" and "test1.jpg" and I want to show both of them in one new image. Can you tell me how to do please ?
Dec 13 '07 #1
1 1852
MarkoKlacar
296 Expert 100+
Hi,

what you need to do is create a new image using the imagecreatetruecolor function. When you have looked at this function you'll need to use the imagecopyresampled in order to copy your images to the new "big" image.

Good luck
Dec 19 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Georg Andersson | last post by:
hi i'm pretty new to php. so let me ask you a pretty easy question: the code below is supposed to import an image to a mssql database. images are not meant to be stored in databases, i know....
0
by: lars-jacob hove | last post by:
Hello. I'm having trouble importing images. I have the following procedure : declare Image ORDSYS.ORDImage; ctx RAW(4000) := null; begin insert into bilde_test values (
7
by: Vinay | last post by:
Hi All: I have a small application that stores images either in the database or as files (depending on the user preference). I'm in the process of providing a web interface to this application....
8
by: Chris Beall | last post by:
I'm struggling with how to handle, on a web page, images that contain text that the user must be able to read. Examples: tombstone photos, photos or scans of historic documents (handwritten or...
4
by: Kersten | last post by:
Hi to all, I havea big DB with information and pictures of our employees and this DB is used by a lot of people in our company. The data format is Access2000. In the past the import of pictures...
2
by: mikeoley | last post by:
Ok I have a Javascript slideshow working. Every image is linked to a another page in the site. Problem is...The link wont refresh to the next link once the second images rollovers in the slideshow....
2
by: trae | last post by:
If you can import the images, then where to I go to find out how to do this correctly.
10
by: Neo Geshel | last post by:
I am seeking to hand-roll my own blog in ASP.NET 2.0 and SQLExpress 2005. Why? Because I can. Because I will gain experience. The one thing that has me stumped at square one is inline images....
3
by: vaniKanabathy | last post by:
Hi , i had problem in import .gif image. I had call the image using Image32.Picture = LoadPicture(App.Path & "\a.gif") the image appear in my form but it not animated as it was. Please help me...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.