1, the concept of watermark
Watermark is a mechanism for measuring the progress of event time, which is a hidden attribute of the data itself. Typically, data based on event time contains a timestamp, such as 1472693399700 (2016-09-01 09:29:59.700), and the watermark time of this data may be:
Watermark (1472693399700)
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
Jpeg.Canvas.Font.Color = h000000 ' '/watermark font Color
Jpeg.Canvas.Font.Family = "Song Body" '/watermark Font
A super powerful image watermark class. In the afternoon, I wrote a watermark class for the image. this class adds a text watermark to the image, adds an image watermark, and implements the transparency function, I wrote a class for adding watermarks to images for users to learn and do nothing in the afternoon. this cl
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 = ImageColorAllocate ($ im, 235,235,235 );
$ Pink = ImageColorAllocate ($ im, 255,128,255 );
$ Fontfile = "simkai. ttf ";
/* $ Fontfile font path, depending on the operating system, can be simhei. ttf (), SIMKAI. TTF
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 = ImageColorAllocate ($ im, 235,235,235 );
$ Pink = ImageColorAllocate ($ im, 255,128,255 );
$ Fontfile = "simkai. ttf ";
/* $ Fontfile font path, depending on the operating system, can be simhei. ttf
ASP component AspJpeg (watermark) generate thumbnails and other usage methodsFont: [Increase decrease] Type: Reprint time: 2012-12-17 I want to commentAspJpeg is a fairly powerful image processing component that makes it easy to make thumbnails of images and watermark images. Here is a brief introduction to the use of methods, the need for friends to understand the nextfirst, to add a
Support text watermark, image watermark support watermark location random or fixed (nine Gongge) Watermark Transparency settings (image watermark and text watermark are supported) text waterma
In php, adding watermarks to Chinese characters requires some simple processing. one is to convert characters into gbk, and the other is to load Chinese fonts, with these two conditions, adding a Chinese watermark to the image is simple.
Example 1Copy codeThe 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 = ImageColorAllocate ($ im, 235,
Add watermark to the picture is a common and very useful function of PHP program, let me give you a detailed introduction to the PHP PNG transparent background Watermark program code bar.
The code is as follows
Copy Code
Original image$DST = "/upload/20120914/20120914040740-0.jpg"; Note that the picture path should be correctGet the original picture information$DST _info = getimage
Support text watermark, image watermark
Watermark is supported at random or fixed position (nine Sudoku)
Watermark Transparency Settings (both image watermark and text watermark are supported)
font, color, size settings for text w
This article to the students about the use of CKEditor upload file renaming and watermark configuration, there is a need to understand the students can enter the reference.
First: I want the uploaded files to organize the folders according to the date
Please modify the: config.php file under the editoreditorfilemanagerconnectorsphp folder
Find the following content:
The code is as follows
Copy Code
Path to user files relati
This class is very powerful and detailed! I hope you will like it and give some suggestions on text and image watermarks.
Supports random or fixed watermark positions (nine cells)
Watermark transparency settings (image watermarks and text watermarks are supported)
Font, color, and size settings of text watermarks
Transparency of the image watermark background
Co
Open the Upload class file in the PHP directory under Ueditor compression package: Uploader.class.phpAdd the call watermark processing method under the main method of uploading files:
The code is as follows
Copy Code
/*** The main processing method of uploading files* @return Mixed*/Private Function Upfile (){................................................$this->stateinfo = $this->statemap[0]; (about 122 lines)Add below t
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. Only the first knowledge of GD library, example learning. First, the layout of the needs of the site to use a similar to the Class Network course list style, each course is a banner map, the following is the
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 watermark
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]) { Case 1: $DST _im =imagecreatefromgif ($DST); Case 2: $DST _im =imagecreatefromjpeg ($DST); Case 3: $DST _im =imagecreatefrompng ($DST); Case 6: $DST _im =imagecreatefromwbmp ($DST); Default Die ("Unsupported file type 1"); exit; }
Using System;Using System.IO;Using System.Collections;Using System.Drawing;Using System.Drawing.Drawing2D;Using System.Drawing.Imaging; Namespace Imag_writer{Type of watermarkpublic enum Watermarktype{Text watermarkTextmark,Picture watermarkImageMark//Temporarily only add text watermark}; The location of the watermarkpublic enum Watermarkposition{Upper left cornerWmp_left_top,Lower left cornerWmp_left_bottom,Top right cornerWmp_right_top,Lower right c
New definition of photo "watermark"
What is a watermark? The traditional watermark is usually the copyright information, the author information or the anti-theft map information in the picture, the producer and the application are usually specialized groups.
Watermark Camera gives a new definition of "
This article is mainly for everyone in detail introduced the Kindeditor editor plus image upload watermark function, with a certain reference value, interested in small partners can refer to, hope to help everyone.
Kindeditor is an open source online HTML editor that allows developers to replace traditional multi-line text input boxes (textarea) with visual rich text input boxes with Kindeditor. Can be seamlessly integrated with Java,. NET, PHP, ASP
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.