The code is as follows
Copy Code
Original image $DST = "/upload/20120914/20120914040740-0.jpg"; Note that the picture path should be correct Get the original picture information $DST _info = getimagesize ($DST); Switch ($DST _info[2]
PHP plus picture watermark, Text watermark Class code, PHP plus watermark class, support the text image watermark Transparency settings, watermark picture background transparent. Write a class of their own, because the development of a set of CMS to
Php image watermark code, php image adding text watermark and image watermark
/**
* Watermarks: Supports the transparency settings of text image watermarks and the transparency of the watermark image
Recently, I used metinfo 5.0 to build my own small site. The feature is quite good and useful. I found many small problems and I have done almost the same thing. I am too lazy to switch to other cms, fix it by yourself ~
Problem 1: The image
This article mainly for you to introduce the PHP generated random watermark image of the relevant data, with a certain reference value, interested in the small partners can refer to the PHP-based GD Graphics library, generate a picture themselves.
Support text watermark, image watermark
Support for watermark location random or fixed (ix Gongge)
Watermark Transparency Settings (both image watermark and text watermark support)
font, color, and size settings for text watermarks
Background
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 =
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 =
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.