This article describes how to use the imagecopy function to add an image watermark for PHP image processing. This article provides a simple entry-level User-Defined Function example. For more information, see
This article describes how to use the
PHP image processing using the Imagecopy function to add a picture watermark instance,
Adding a watermark to a picture is also a common feature in image processing. As long as you see the pictures in the page can easily get, you hard to edit the
There are many ways to add watermarks to images in php. These functions are based on the GD library in php. If you do not have an account, you cannot use the watermark function.
The imagecopymerge () function is used to copy and merge part of an
Image watermark in PHP There are many ways to achieve, he these features are based on the GD library in PHP, if there is no opening of the GD library is not allowed to use the watermark function.
The Imagecopymerge () function is used to copy and
This article describes how to use the imagecopy function to add an image watermark for PHP image processing. This article provides a simple entry-level user-defined function example, if you need a watermark, you can refer to the following section to
The Imagecopymerge () function copies and merges part of an image, returns TRUE successfully, or returns FALSE.
GD Library support for PHP under Windows
Find php.ini, open content, find:
; Extension=php_gd2.dll
Put the front semicolon ";" Remove,
Adding a watermark to a picture is also a common feature in image processing. Because as long as the pictures you see on the page can easily get, you work hard to edit the pictures do not want to be taken away by others to use, so add a watermark
The imagecopy function reports a syntax error, such as online. thanks for the source code:
$ Dst_im = imagecreatetruecolor (150,150 );
$ Src_im = imagecreatefromjpeg ("demo_files/sago.jpg ");
Imagecopy ($ dst_im, $ src_im, 150,150 );
Gd
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.