Php image watermark function code (supports pictures and text)
/*
* Function: php image watermark (watermarks support images or text)
* Parameters:
* $ GroundImage: specifies the background image to be Watermark. Currently, only GIF, JPG, and PNG formats are supported;
* $ WaterPos
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
Add watermarks to PHPimagecopy () and imagecopymerge () images. 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. There are many ways to add watermarks to imagecopymerge images in php. these functions are based on the GD Library in php. if you do not open a GD library, you cannot use the
/*Note: generate a watermark. You can generate a file based on the top left, bottom left, top right, bottom right, center, and transparency. This file is only valid for JPEG or JPG formats!Author: Blue. DreamDisclaimer: Recently, many websites have quoted my articles and omitted the author's information. Please refer to this article and do not omit the author's information.*/Using system;Using system. drawing;Using system. Drawing. imaging;Using syste
First KindThe second KindLet's take another look. Supports adding watermarks to images in both image and text ways. Image support Gif,png,jpg Three formats, watermark image support PNG and GIFFunctionsetwater ($IMGSRC, $MARKIMG, $markText, $TextColor, $markPos, $fontType, $markType) {$ srcinfo= @getimagesize ($IMGSRC); $srcImg _w= $srcInfo [0];$ srcimg_h= $srcInfo [1];switch ($srcInfo [2]) {case1: $SRCIM =imagecreatefromgif ($IMGSRC);break; case2: $sr
convert PDF to Word
Step one: This use word2013 to remove the PDF file watermark is very effective, first open word2013, enter word new blank page, click on the top left corner "file."
Step two: Under the File option, locate and click "Open". Then in the relevant column, click on the "Computer" into the computer to open the need to remove the Watermark PDF file.
Step three: Loc
Adding watermarks to Images Using ASP requires components... common applications include aspjpeg software and wsImage software developed by the Chinese people. You can search and download the two software online. We recommend that you use the wsImage developed by the Chinese people. After all, it is a Chinese version and easy to operate.
How to register Components:Enter "regsvr32 [Dll path]" at the command prompt.Adding a watermark to an image is not
This article summarizes two php functions that can be used to add watermarks to images. The first one is easier to understand and the second one is more powerful and encapsulated, if you have any need, you can refer to php to add a watermark to an image.
Let's take a look at adding watermarks to images and text. Images can be in GIF, PNG, or JPG formats. Watermarks can be in PNG or GIF formats.
Function setWater ($ imgSrc, $ markImg, $ markText,
Like PDF, in Word, the watermark is also divided into image watermark and text watermark, add image watermark to the document can make the document become more beautiful, more attractive. Text watermark can protect the document, remind others that the document is protected b
PHP example: add a watermark to the uploaded image. The program that uses php (as the mainstream development language) to add a watermark to the uploaded image creates a graph by judging the file type and then copies it to the original image, filling and setting up re the program that uses php (as the current mainstream development language) to add a watermark to
This article is mainly for you to introduce the PHP thumbnail generation and image watermark production process, PHP to achieve watermark addition and thumbnail generation of related steps, with a certain reference value, interested in small partners can refer to
1. Start
In the website upload picture process, often use the thumbnail function. Here I wrote a picture of the image class, can generate thumbna
This article summarizes two php functions that can be used to add watermarks to images. The first one is easier to understand and the second one is more powerful and encapsulated, if you have any need, you can refer to php to add a watermark to an image.
Let's take a look at adding watermarks to images and text. Images can be in GIF, PNG, or JPG formats. watermarks can be in PNG or GIF formats.
Function setWater ($ imgSrc, $ markImg, $ markText,
Convert a PDF to Word using Word2013:
Step 1: This use word2013 to remove the PDF file watermark is very effective, first open word2013, enter word new blank page, click on the top left corner "file."
Step 2: Under the File option, locate and click "Open". Then in the relevant column, click on the "Computer" into the computer to open the need to remove the Watermark PDF file.
Step
Program
If you are familiar with PHP's GD library, it is not difficult to read this article!/******************************************************************************Parameter description:$max _file_size: Upload file size limit, unit byte$destination _folder: Upload file path$watermark: Whether additional watermark (1 for Watermark, other for no
Today encountered a demand for the upload map covered with watermarks, on the internet to find a long time is set in the specified location watermark, the following code is I find the code online, and then transformed into. Let's look at the effect chart first.
Here's how to implement it:The first step: the use of PS or beauty map software design watermark images, such as:
Step two: Put the following
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 add a watermark to an image. this is also a common function in image processing. As long as the images you see on t
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.