Php uploads images and adds watermarks (image watermarks and text watermarks ). Php uploads an image watermark (image watermark, text watermark). This is a complete watermark that is automatically added to the image when the user uploads the image,
Add a watermark to a picture
Copy Code code as follows:
Dim Jpeg ' '//Declaration variable
Set Jpeg = Server.CreateObject ("persits.jpeg") '//Calling Component
Jpeg.open Server.MapPath ("AAA"). JPG ")"//Source Picture location
PHP Upload image plus watermark (image watermark, text watermark) This is a more complete rationale in the user upload pictures automatically to the image to increase the water mark, this increase watermark function can increase the text watermark
Php uploads an image watermark (image watermark, text watermark). This is a complete watermark that is automatically added to the image when the user uploads the image, this added watermark function can be used to add text and image watermarks.
Php
Php code for adding a Chinese watermark to an image
Header ("Content-type: image/png");/* notify the browser to output the image */
$ Im = imagecreate (400,300);/* define the image size */
$ Gray =
PHP implementation of a picture to add a watermark effect,
PHP implementation of a picture to add watermark effect
Let's take a look at a support to add a watermark to a picture in two ways: Picture and text. Image support Gif,png,jpg Three
/*
* Function: PHP image watermark (watermark supports picture or text)
Parameters
* $groundimage background image, that is, need to add a watermark image, temporarily only support gif,jpg,png format;
* $waterPos watermark
Php image and Chinese watermark implementation code sharing Example 1
The code is as follows:
Header ("Content-type: image/png");/* notify the browser to output the image */
$ Im = imagecreate (400,300);/* define the image size */
$ Gray =
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.