note 51577 added to function.imagecopymerge
| From: | ingrid at osu1 dot php dot net | Date: | Mon, 04 Apr 2005 21:16:23 +0000 |
| Subject: | note 51577 added to function.imagecopymerge | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-87449@lists.php.net to get a copy of this message | ||
I found on the internet about a thousand copies of this "imageCopyMerge" script of Stefan.
Most of them had a copyright notice of the copyist added, but none of them had added what a
starting user of PHP scripting really needs: The lines to be used in a HTML page, where the result
of the script will be visible:
<?php
$sourcefile = "ORIGFILE.jpg";
$insertfile = "watermark.jpg";
$targetfile = "foto.jpg";
$transition = 30;
$pos=7;
require("watermark.php");
mergePix($sourcefile, $insertfile, $targetfile, $pos, $transition);
echo "<img src=\"$targetfile\">";
?>
I was so lucky to get these lines from someone on the internet, after I posted my question all over
the world.
Most other people that replied, referred to the bookstore. But I had first read halve the (this) PHP
manual, and had not found it.
Just a suggestion, but I know it will help many people getting started with PHP: When you put your
scripts here, why not add those few lines needed to incorporate it into a HTML page?
----
Manual Page -- http://www.php.net/manual/en/function.imagecopymerge.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+51577
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+51577&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+51577&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+51577&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+51577&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+51577&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+51577&report=yes
Search -- http://master.php.net/manage/user-notes.php