Hi there,
I was wondering what's the quickest way to put a (transp-PNG)
over a picture?
I have a code, but i guess it's sloppy. And it's slow.
(Code below this message)
Could anyone help me out on this?
Thanks
Greetings Frizzle.
*************************************
$img_id = substr( '0000000000'.$_GET['id'], -10, 10);
$info = getimagesize($img_id.".jpg");
$photo = imagecreatetruecolor($info[0], $info[1]);
$pic = imagecreatefromjpeg($img_id.".jpg");
imagecopy($photo, $pic, 0, 0, 0, 0, $info[0], $info[1]);
$logo = imagecreatefrompng("photo_logo.png");
imagecopy($photo, $logo, 20, 30, 0, 0, 128, 20);
header("Content-type: image/jpeg");
imagejpeg($photo , "", 90);
imagedestroy($photo);
************************************* 12 18849
Dude,
that's a great script!
Too bad, this isn't what i intended to create.
I have my logo with colors & transparency as a PNG file,
all i want to do is put it on top of a photo.
The way i'm doing it now is slow, and i believe i'm making
a few steps to many ...
Again, compliments with your script!
Frizzle.
Hmm thanks for the effort Justin,
but all i need is to combine 2 images, no transparency
or whatever.
It's probably just a very simple script ...
Thanks anyway!
Greetings Frizzle.
frizzle wrote: * bump ? *
What?
Brian
<comp.lang.php , Default User , de***********@yahoo.com>
<3k************@individual.net>
<24 Jul 2005 00:06:36 GMT> frizzle wrote:
* bump ? *
What?
Frizzle must think this is a web forum :-)
I wanted to give this message an extra boost, so it stays under the
attention, cause i'm really eager to know the solution ...
frizzle wrote: I wanted to give this message an extra boost, so it stays under the attention, cause i'm really eager to know the solution ...
I don't believe you are that familiar with how usenet and the majority
of newsreaders work. What you did is unlikely to achieve your goal.
A more typical approach would be to add information, especially
concerning things you've tried to solve it on your own, and the results
from those. You *have* been working on it, haven't you?
Brian
Yes of course i have!
I came here, because i really couldn't figure out the answer.
I pasted the script in my original post, so other people could
see what i have sofra.
I tried to change it etc. etc. but nothing seemed to work, i only
came up with a black image, the size of the picture with the logo
on it, but not what i wanted: only the JPG photo, with a transp-PNG
logo over it, PHP doesn't need to render any extra opacity or
whatever.
I've given as much as information as i have now ....
If there's anyone willing to help me, and needs some more info on
this, * please* ask me ...
I did not intend to abuse the usnetgroups or whatever...
Greetings Frizzle. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Carl Gilbert |
last post by:
Hi
I want to write an application that can merge two images with a bit of
re-sizing and changing of opacity thrown in for good measure.
I have a backdrop that can be in any format and an...
|
by: Zeeway |
last post by:
hi,everyone
I have a question about merging images. I want to merge serval tiff
images into one file using C#,that means the final file has multiple
frames.My problem is that I want each frame in...
|
by: petr pilsl |
last post by:
sorry - no idea where to post my question, so I crossposted to a linux
and a html-authoring-group. Both groups might be familiar with wget.
wget -p http://www.goldfisch.at
does not load the...
|
by: rcoco |
last post by:
Hi all,
I'm facing this problem I have images on my website but when I Deploye
the website on server the Images are not there I only get the X sign.
How can I go about this.
Thanks
|
by: etnaelk |
last post by:
Hi all, I have a real bugger of a problem that I just haven't been able to figure
out. I am working on writing my own proxy server in C# using TcpListener,
TcpClient, HttpWebRequest/Response and...
|
by: lawpoop |
last post by:
Hello all --
I'm having a problem getting images to appear in the body of an HTML
email using PEAR's mail_mime class.
Here's my code, what am I doing wrong?
include("Mail.php");...
|
by: Simon Wigzell |
last post by:
I have inherited a database driven website that comes with a table of image
links. The images are scattered all of the internet and there are thousands
of them. I would like to write an asp script...
|
by: tstrogen |
last post by:
I am using Python 2.6 on Mac OS 10.3.9.
I have been trying to use:
image = urllib.URLopener()
image.retrieve(url, filename)
to download images from websites. I am able to do so, and end up with...
|
by: artlean |
last post by:
I'm trying to create a page where users can just enter a url into a textbox, click search, and then we list all of the images on that exact page.
So far I've managed to get it to scrape the entire...
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
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: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
| |